Fixing a problem with showing linked to elements when there's no hash in the url