Skip to main content
Topic: Back button not working when accessing hidden areas (Read 2876 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Back button not working when accessing hidden areas

The "back" button when it says "Sorry, we can't let you access this section. We can't even tell you if it exists. You're welcome to visit the main page and choose your way from there." doesn't actually bring me back, it refreshes the page and nothing else.

Do note, in case it wasn't obvious... I mean the "back" button that is plugged into elkarte, not the browser one.
~ SimplePortal Support Team ~

Re: Back button not working when accessing hidden areas

Reply #1

Okay, how did you try to access the page in question?
If opened new tab, and typed it in, there would be no place for the back button to send you.

Unless the last page, was a page on the forum, then that will happen.

Re: Back button not working when accessing hidden areas

Reply #2

action=admin / action=moderate and probably any other hidden section you don't have access to, take your pick ;)
~ SimplePortal Support Team ~

Re: Back button not working when accessing hidden areas

Reply #3

I did not ask what pages you tried to access.
Read what I said:

Quote from: Burke Knight – Okay, how did you try to access the page in question?
If opened new tab, and typed it in, there would be no place for the back button to send you.

Unless the last page, was a page on the forum, then that will happen.

Re: Back button not working when accessing hidden areas

Reply #4

Dude, there's an URL bar that can be edited!!! LOL!
~ SimplePortal Support Team ~

Re: Back button not working when accessing hidden areas

Reply #5

@Flavio93Zena
That was precisely why I had asked what I did!
Because, if typed it into the URL box in new tab, what I said would be a factor. A known issue with most javascript back buttons... LOL

However, I have this to say for the bug report, after finally getting my answer in our off site chatting:
Confirmed for me.
Seems the javascript code needs some fine tuning.

I am unfamiliar with the code used for it, but this code here, usually works fine:

Code: [Select]
<FORM>
<INPUT TYPE="Button" VALUE="Previous Page" onClick="history.go(-1)">
</FORM>

Re: Back button not working when accessing hidden areas

Reply #6

No new tab, didn't even consider that but I had tested of course without a new tab ;) Thanks for pointing it out.
~ SimplePortal Support Team ~

Re: Back button not working when accessing hidden areas

Reply #7

No new tab???? That's so... So... barbaric!!!! LOL

 

Re: Back button not working when accessing hidden areas

Reply #8

The code is there like that because of other reasons.
TBH, in the scenario described I wouldn't bother fixing it (at the price of make it fail pretty badly in almost the entire admin panel because of hooks).
Bugs creator.
Features destroyer.
Template killer.