Skip to content

[Bug] Upvotes and the back button

Pryotra··2 votes·567 views

So if I enter a thread, upvote the OP, then hit the back button on my browser, it appears like I haven't voted yet.

Here is where things get interesting. When I go to upvote, the number updates, but the arrow goes to neutral. If I upvote again, it raises the number again.

Don't know if this is purely graphical, or if this is exploitable.

4 Comments

RiotKrylhos1 votes

Ah - interesting. Looks like the interface got out of sync in this scenario. When you refreshed did the voting state / behavior go back to as you expected?

Kira Onime1 votes

After a refresh, the upvote number seems to take into consideration the note that was inputed from the thread.

Pryotra1 votes

Well, for me, the refresh seemed to correct it. Must be a graphical glitch.

Sir Frosthaven1 votes

A quick and dirty test you could make is to create a back button event listener, and when a user requests their browser go back a page you can stop the default action and use a location.herf = linkreferrer setup to force a fresh load of the page they came from.

More from Boards Feedback

More by Pryotra