Ignore trailing slash (/) when extracting hash from URL.