Backbone router - Replace whitespace

170 views Asked by At

I have a problem with replace whitespace on the url with the Backbone Router.

I searched the solution in the internet but i can't resolve this problem.

I need that if the users when enter in my site with the next url, for example: "http://www.example.com/example example", the router must replace the whitespace with "+" or "-" character. i.e. the url must be "http://www.example.com/example+example" or "http://www.example.com/example-example".

Thank you

0

There are 0 answers