[Bug] Side Nav not updating when link is followed to different page
Describe the bug
When a link is clicked and redirects to a different page, the side-nav still shows the original page selected even though the user is now on a different page.
To reproduce
- Go to these preview docs: https://sayari-analytics-preview-8d472466-ecb5-423d-88b4-fcc2ee310a0a.docs.buildwithfern.com/
- Navigate to "Sayari Library" -> "Ontology" -> "Entities"
- Click attributes link "additional_information"
- Done, you are now on the attributes page, but entities is still selected in the side nav
Expected behavior
The side nav should reflect the page currently being displayed
Screenshots
Version
"0.16.33"
Additional context
N/A
I find that this only happens when the link is to a named anchor or id on a page. That is, when it's a link like /something#heading_id. Otherwise, the side nav updates as expected.
You can see an example of this on Fern's own docs. Go to https://docs.buildwithfern.com/generate-sd-ks/generators/type-script-browser-sdk and scroll to the bottom. Click the link there to /generate-sd-ks/generators/type-script-node-js-sdk#configuration-options and see that the side nav does not switch to the TypeScript NodeJS SDK.