remove the anchor link
-
I want to remove the anchor link when I jump to another page changing the select of the filter form.
Ex)
https://test.com/office/area/tokyo/genre/animal/#anchor1then, when I select another AREA(paris) and jump to that page, the anchor still there….like
Ex result)
https://test.com/office/area/paris/genre/animal/#anchor1I want to remove the anchor when I jump to another page.
This is what I want https://test.com/office/area/tokyo/genre/animal/#anchor1 ↓ https://test.com/office/area/paris/genre/animal/
Now I using this code to jump when I change my select form.
$('.beautiful-taxonomy-filters-select').change(function(){ $(this).closest('#beautiful-taxonomy-filters-form').submit(); });
I try this but, remove the anchor and still in the same page…
if(location.hash){ location.href = location.href.replace(/#.*/, ""); }
What can I do?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘remove the anchor link’ is closed to new replies.