when redirecting, doing so to the path, not the location because if it includes a # the page doesn't actually reload.