QubitProducts / cherrytree

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

strip slashes from the end of generated url #128

Closed xrado closed 8 years ago

xrado commented 8 years ago

Hi,

I'll continue the discussion here.

I found out that my fix breaks url generation for / (root), it strips out the only slash so it becomes empty string. I have also tested what actually happens on /path//// and I get an error "TypeError: Cannot read property 'options' of undefined" ..I didn't found yet from where it comes.

KidkArolis commented 8 years ago

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