QubitProducts / cherrytree

A flexible nested router.
MIT License
108 stars 20 forks source link

strip slashes from the end of generated url #2 #129

Closed xrado closed 8 years ago

xrado commented 8 years ago

paths like /path/:a?/:b?/:c? with no parameters, generates /path/// and causing error "TypeError: Cannot read property 'options' of undefined"

second try :)

KidkArolis commented 8 years ago

I've continued the implementation and discussion in https://github.com/QubitProducts/cherrytree/pull/150.