Fixed a bug where navigate to /?someparam=somevalue will cause url being truncated