meteor - Simplify url route to be '/:_id' instead of '/lists/:_id -
i'm trying learn meteor using todos app example.
i want simplify list's url removing "/lists" part: i.e. rather http://localhost:3000/lists/qehmza2z6ettcbnfh i'd url list be: http://localhost:3000/qehmza2z6ettcbnfh
i thought easy: i'd change
flowrouter.route('/lists/:_id', {
to
flowrouter.route('/:_id', {
...in routes.js , seemed work fine @ first... until tried navigating /signin or /join.
it appears flowrouter clashing accountstemplates in useraccounts-configuration.js - in configuration system doesn't know /signin isn't list.
any idea how resolve? tried moving accountstemplates logic flowrouter unsuccessfully.
Comments
Post a Comment