[BUGFIX beta] Preserve base URL when using history location for routing

When setting a base URL `<base href="/base/">` `/base/` should be preserved when changing the URL through push state. This is the expected behavior when setting a base URL.