I'm trying to make a simple application using Aurelia, and I don't like that my routes are matching urls with extra content on the end.
My router configuration is:
configureRouter(config, router) {
config.title = 'Aurelia';
config.map([
{ route: '', redirect: 'players' },
{ route: 'players', name: 'players', moduleId: 'components/players/players', nav: true, title: 'Players' }
]);
this.router = router;
}
I only want #/players
to route to the players component. How can I keep things like #/players/extra/url
from also being routed?