Skip to content

Get url string of pagesPath #141

@IRediTOTO

Description

@IRediTOTO

Description

Hi, I many times we need get final url of pagesPath
Example:

const urlObject= pagesPath.dashboard.project._projectId("abc").$url();
// return { pathname: '/dashboard/project/[projectId]' as const, query: { projectId }, hash: url?.hash }
// But many times we will need the final string, like use in window.open
window.open("Need an url string here, not object")

Describe the solution you'd like

This will be good, i think
pagesPath.dashboard.project._projectId("abc").$urlString;

Additional context

image

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