You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using local preview mode, if you click on an anchor link, change your content and reload the page, it will throw a page not found error. To resolve, if you remove the anchor link from the URL and refresh, the page loads
To Replicate
Create a page, with a H2 header
---title: Test---
Test Page
## Anchor Link
Test Anchor
Load the page using docs.page/preview
Click on the anchor link, which sets the browser URL to https://docs.page/preview/testpage#anchor-link
4 Hit Ctrl+R
To resolve - remove the anchor link, ie https://docs.page/preview/testpage
Its looking for page#anchor.mdx. To confirm this, you can create another page called page#anchor.mdx in your directory. When you go through the steps above, it will load the page#anchor.mdx file rather than page.mdx
The text was updated successfully, but these errors were encountered:
When using local preview mode, if you click on an anchor link, change your content and reload the page, it will throw a page not found error. To resolve, if you remove the anchor link from the URL and refresh, the page loads
To Replicate
https://docs.page/preview/testpage#anchor-link
4 Hit Ctrl+R
https://docs.page/preview/testpage
The cause of the issue appears to be here: https://github.com/invertase/docs.page/blob/main/website/src/layouts/preview/utils.ts#L265-L267
Its looking for
page#anchor.mdx
. To confirm this, you can create another page calledpage#anchor.mdx
in your directory. When you go through the steps above, it will load thepage#anchor.mdx
file rather thanpage.mdx
The text was updated successfully, but these errors were encountered: