Skip to content

Comments

Clarify whether router.pathname includes basePath#24675

Merged
kodiakhq[bot] merged 2 commits intovercel:canaryfrom
tremby:patch-1
May 1, 2021
Merged

Clarify whether router.pathname includes basePath#24675
kodiakhq[bot] merged 2 commits intovercel:canaryfrom
tremby:patch-1

Conversation

@tremby
Copy link
Contributor

@tremby tremby commented Apr 30, 2021

The docs were vague on this -- router.asPath mentions that it doesn't include basePath but router.pathname didn't say either way.

Documentation / Examples

  • Make sure the linting passes: I haven't checked; I presume you have a CI bot for this.

Copy link
Member

@ijjk ijjk left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

@kodiakhq kodiakhq bot merged commit a77f384 into vercel:canary May 1, 2021
flybayer pushed a commit to blitz-js/next.js that referenced this pull request Jun 1, 2021
The docs were vague on this -- `router.asPath` mentions that it doesn't include `basePath` but `router.pathname` didn't say either way.

## Documentation / Examples

- [ ] Make sure the linting passes: I haven't checked; I presume you have a CI bot for this.
@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.

2 participants