I'm navigating away from a page that has a URL similar to
http://solo.dev/module-1/behavioural-safety/?id=7#14
by using
if($course_id != $_GET['id']) {
header("location: /courses/");
}
However, it persists the #14 value as
http://solo.dev/courses/#14
How do I redirect to just /courses/
without retaining the hashed value?