Skip to content

Incorrect path detection #191

@eugeniumegherea

Description

@eugeniumegherea

Hello.
Today found some ugly bug.
Sample:
router.on({ '/search/:v/:q': { as: 'search', uses: function () { console.log('search', arguments[0]); } }, '/locations': { as: 'home', uses: function () { console.log('root'); } } });

The route search will never work if in its parametrized url will be string '/locations', which is another route path. The callback is never called
In other words, navigation to http://127.0.0.1:8080/#/search/locations/d does not trigger callback, however, http://127.0.0.1:8080/#/search/notlocations/d will work

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