use replaceState instead of pushState, and use the full server url.

The full server URL is needed to make DDP work.