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

doc: fix ActiveLink detection condition #23472

Merged
merged 1 commit into from
Mar 28, 2021
Merged

doc: fix ActiveLink detection condition #23472

merged 1 commit into from
Mar 28, 2021

Conversation

huozhi
Copy link
Member

@huozhi huozhi commented Mar 28, 2021

Documentation / Examples

  • Make sure the linting passes

router.pathname can be dynamic routes like /posts/[slug], use router.asPath instead to detect anchor is active

@kodiakhq kodiakhq bot merged commit 737c25e into vercel:canary Mar 28, 2021
@timneutkens
Copy link
Member

Thanks!

SokratisVidros pushed a commit to SokratisVidros/next.js that referenced this pull request Apr 20, 2021
## Documentation / Examples

- [x] Make sure the linting passes


`router.pathname` can be dynamic routes like `/posts/[slug]`, use `router.asPath` instead to detect anchor is active
flybayer pushed a commit to blitz-js/next.js that referenced this pull request Apr 29, 2021
## Documentation / Examples

- [x] Make sure the linting passes


`router.pathname` can be dynamic routes like `/posts/[slug]`, use `router.asPath` instead to detect anchor is active
@vercel vercel locked as resolved and limited conversation to collaborators Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants