Skip to content

Page reload on redirect page("./pageToRedirect") #576

Description

@micabal

Would it be possible to parse the path and remove the leading dot in the url if any ?
Indeed, having a leading dot cause the page to reload. I have seen some people having the same issue.

page("./pageToRedirect") redirects with a page reload.

page("/pageToRedirect") works as expected

page.js/page.js

Line 1005 in 4f99916

function page(path, fn) {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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