I have this:
http://127.0.0.1:8000/found-locations/?state=--&km=km
I want this:
found-locations/?state=--&km=km <
window.location.pathname + window.location.search
Will get you the base url /found-locations plus the query string ?state=--&km=km
/found-locations
?state=--&km=km