ash-project / ash_hq

The Ash Framework homepage and documentation site.
MIT License
48 stars 26 forks source link

Links for search results with special characters don't get URL-escaped properly #101

Closed sevenseacat closed 1 year ago

sevenseacat commented 1 year ago

Brief Description

If I search for a function with a special character in it, eg. sensitive? The first result is (correctly) a link to the attribute doc for that function, at https://ash-hq.org/docs/dsl/ash/latest/resource/attributes/attribute#sensitive? (including the question mark). The link still works to go to the page, but because the hash is different, the page doesn't autoscroll to the correct option.

The actual link to go directly to that function (as linked on the attribute DSL page) is https://ash-hq.org/docs/dsl/ash/latest/resource/attributes/attribute#sensitive- (escaped question mark).

Steps to reproduce the bug