Skip to content

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

@micabal

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) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions