Fix extra slash issue

Before fix:
http://myapp -> http://myapp/0-1
http://myapp/ -> http://myapp//0-1

After fix:
http://myapp -> http://myapp/0-1
http://myapp/ -> http://myapp/0-1