Skip to content

Ports in URL are substituted with empty string (as if they were path parameters) #6

Description

@thomaspaulin

If I build the following URL:

const propertiesApi = "http://localhost:3332/api"
const id = "a48585e0-80a7-4baf-834a-d9f65dac75b1"

const {url} = useUrl({
        path: '/properties/:propertyId',
        pathVariables: {
            propertyId: id
        },
        queryParams: {}
    }, propertiesApi)

The URL I am given back is https://localhosta48585e0-80a7-4baf-834a-d9f65dac75b1/api/properties/a48585e0-80a7-4baf-834a-d9f65dac75b1

Notice the :3332 in the URL is stripped incorrectly creating an invalid URL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions