Skip to content

Searches including hashes (#) fail when linked to #2745

@ChildishGiant

Description

@ChildishGiant

Problem

I have tags in my pages and am linking them to searches. If I link to ?search=blog then pages with #blog don't show up. When I search manually for #blog I get the correct results and the URL is search#blog. The issue is that when I link to search#blog, the url gets replaced with search=undefined

Steps

  1. Search for something with a hash at the start
  2. reload the page and watch the search change to undefined

Possible Solution(s)

No response

Notes

No response

Version

mdbook v0.4.51

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-SearchArea: SearchC-bugCategory: A bug, incorrect or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions