What up y'all! I've been working on creating a portfolio site from scratch and got stuck on this annoying little problem.
Can anyone shed some light on how to change a URL without reloading the page?
Thanks all!
What up y'all! I've been working on creating a portfolio site from scratch and got stuck on this annoying little problem.
Can anyone shed some light on how to change a URL without reloading the page?
Thanks all!
For further actions, you may consider blocking this person and/or reporting abuse
Vicente Antonio G. Reyes -
Tauri StClaire -
jerry32410 -
stevejohnson -
Once suspended, ohconnormyconnor will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, ohconnormyconnor will be able to comment and publish posts again.
Once unpublished, all posts by ohconnormyconnor will become hidden and only accessible to themselves.
If ohconnormyconnor is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Connor .
They can still re-publish the post if they are not suspended.
Thanks for keeping CodeNewbie Community 🌱 safe. Here is what you can do to flag ohconnormyconnor:
Unflagging ohconnormyconnor will restore default visibility to their posts.
Top comments (2)
I think the answer might be different depending on what you mean here.
Are you redirecting the user, but want a transition between pages?
Are you trying to update the url as the user scrolls past a certain point on the page?
It could also be helpful to mention what you're working with - React, Vanilla JS, Vue, etc... since depending on the framework/libraries in use there may be different answers :)
The HTML5 history API can do that.
history.pushState(null, null, 'subpage');
More details here: css-tricks.com/using-the-html5-his...