Consider the next link: http://localhost:3000/%5C, where %5C is URL encoding of backslash. When following such link it appears as http://localhost:3000// in browser's address bar.
It seems to happen because pushy usesgoog.Uri for parsing URLs and, for some reason, .getPath returns decoded URLs (doc).
Also, the resulting URL contains the slash and not a backslash, because browsers seem to replace all backslashes with slashed by default.
Consider the next link:
http://localhost:3000/%5C
, where%5C
is URL encoding of backslash. When following such link it appears ashttp://localhost:3000//
in browser's address bar.It seems to happen because pushy uses
goog.Uri
for parsing URLs and, for some reason,.getPath
returns decoded URLs (doc).Also, the resulting URL contains the slash and not a backslash, because browsers seem to replace all backslashes with slashed by default.