Skip to content

Support of wildcard in the beginning of the URL #152

@olignyf

Description

@olignyf

Hi,

I'm halfway done in the Crossroads router+History.js implementation and I see something which seems not supported - or that I at least don't know how to do. It is to have a wildcard for the beginning of the route, or as a workaround configure a base-URL at the init stage.

Router.addRoute('*cities/{id}', function(cityId) { (...) } });

Because in dev mode my URL can be
http://localhost/dev/sandbox/home-panel/public/
http://localhost/dev/sandbox/home-panel/public/cities/2643339
etc.

And in production
domain.com
domain.com/cities/2643339
etc.

Thanks!

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