Skip to content

Allow a base path to be set so app can run on a sub directory #279

@jahilldev

Description

@jahilldev

Hi,

I'm creating an app that will sit on many different sites, in partiular on sub directories like:
www.website.com/something/goes/here

In React Router you can set a basename property on the router so push state can work properly without directing the user back to the domain root, e.g:
basename="/something/goes/here"

Is there a way I can achieve this in preact-router? I haven't found any reference to this in the docs.

Thanks

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