Open Guria opened 8 years ago
I agree, should be default
I am impartial. URLON by default seems fine to me as long as it can easily be turned off.
URLON is fine, but it should definitely be optional. I'm working on converting an existing app to cerebral-router and we don't want to have to change the URLs, which could wreak havoc on our existing userbase. URLON seems like a good system, but not a necessary one for all applications and use cases.
@aesprice would it fit you if it enabled by default, but can be disabled?
@Guria If disabling it is simple and straightforward, yes. Like, a simple flag in the Router
options or the mapper
options would be all I need:
router: Router({
'/': 'home.opened',
'/messages': 'messages.opened'
}, {
urlon: false,
mapper: {query: true}
})
Please dump your votes and objections here.