Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: no page reload when pointing to relative path in docs #1559

Merged
merged 3 commits into from
Jun 29, 2022

Conversation

joannaong
Copy link
Contributor

@joannaong joannaong commented Jun 23, 2022

Resolves an issue where, after docs links were tested and modified to use absolute paths, they all triggered a page reload. Because all links paths start with /docs/foo, they are treated as regular links that the client handles, rather than Next's built-in virtual routing.

@joannaong joannaong requested a review from orvn June 23, 2022 20:04
@joannaong joannaong self-assigned this Jun 23, 2022
@joannaong joannaong marked this pull request as ready for review June 23, 2022 20:05
@orvn orvn linked an issue Jun 28, 2022 that may be closed by this pull request
Copy link
Contributor

@orvn orvn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joannaong looks good overall, but I'm seeing a bug with one of the links that seems otherwise valid.

Steps to reproduce

  • In the build preview, see this page (docs/reference/js-client-library)
  • The 3rd link in the content content identifier (CID) is italicized
  • Clicking this link throws a type error

Looks like the issue might have to do with nesting, since there's markdown within the link content (_ rendering as <em>).

@orvn orvn changed the title feat: no page reload when pointing to relative path in docs fix: no page reload when pointing to relative path in docs Jun 28, 2022
@joannaong joannaong requested a review from orvn June 29, 2022 00:38
Copy link
Contributor

@orvn orvn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue resolved!

@orvn orvn merged commit 78bb7e5 into main Jun 29, 2022
@orvn orvn deleted the feat/no-reload-docs-relativepath branch June 29, 2022 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Internal links in docs reload page
2 participants