Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/pkgsite: change browser URL to canonical path #40936

Open
julieqiu opened this issue Aug 20, 2020 · 0 comments
Open

x/pkgsite: change browser URL to canonical path #40936

julieqiu opened this issue Aug 20, 2020 · 0 comments

Comments

@julieqiu
Copy link
Contributor

@julieqiu julieqiu commented Aug 20, 2020

If the URL passed to the frontend is path@version.

it resolves this internally to module@version/suffix.

and all the links it puts on the page have this form. However, the
browser URL still says "path@version".

We could use window.history.replaceState to change the browser URL without a page reload. According to
https://computerrock.com/blog/html5-changing-the-browser-url-without-refreshing-page, it is available in modern browsers.

/cc @jba @jamalc

@gopherbot gopherbot added this to the Unreleased milestone Aug 20, 2020
@gopherbot gopherbot added the go.dev label Sep 18, 2020
@julieqiu julieqiu removed the go.dev label Sep 19, 2020
@gopherbot gopherbot added the go.dev label Sep 19, 2020
@julieqiu julieqiu removed the go.dev label Sep 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.