Skip to content

How do you deal with reloading/back/forward a page when using hx-push-url? #1700

Answered by Telroshan
kkawabat asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, I think your issue here is not related to refreshing a page itself.
If you're going to use push-url, it means the URL should be accessible from a very new tab without any history, right?
So you could like bookmark www.mysite.com/blogs and access that page directly, without going through the website's root first.

a flag that I can then use javascript to click on My Blog nav item programmatically.

As such, it doesn't seem to be an ideal solution to me to generate first, an "empty page", then trigger some client side logic to only go back to the server again and fetch the content that user was asking for in the place, by accessing that specific page URL.

It seems to me you'd have the …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kkawabat
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants