8000 "asPath" is missing in url objects · Issue #2987 · vercel/next.js · GitHub
[go: up one dir, main page]

Skip to content
"asPath" is missing in url objects #2987
@gwn

Description

@gwn
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

"asPath" information should be present in url objects that are passed as
properties to components, as documented in:
https://github.com/zeit/next.js/blob/master/readme.md#with-link

Each top-level component receives a url property with the following API:

...
asPath - String of the actual path (including the query) shows in the browser
...

Current Behavior

"asPath" is not present in url objects

Steps to Reproduce (for bugs)

  1. Check out the "url" properties of page components to see that "asPath" is missing

Notes

I'm aware that I can get "asPath" from the router object, but it looks like I should be able to get it from the url object as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0