Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

filter+selection -> "document expired" on going back 7 years 4 months ago #17857

  • Bluefox
  • Bluefox's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Posts: 4525
  • Thank you received: 492
maybe it's an obvious thing i've been overlooking but do/did have some trouble with "document expired"

for example:
- backend
- go to articles
- use searchfilters
- click an article
- press back button

not sure if it will give an error at yoiur site but here it is..

as i obviously don't like such errors i did decide to prevent the use of the backspace button in the frontend in general.
over here they are explaining how to prevent it to be working. and over here some more info..

did add a location.href so it's going back to the eventslist view.
if (doPrevent) {
        event.preventDefault();
        window.location.replace("http://www.site.com/eventslist/");
    }

but it's probably not a good solution so was wondering what else can be done to prevent it.


// edit //
did read a bit about window.onpopstate (html5) and think I'll use it to block/modify some things so will try it out.
(won't respond to PM)
==================================================================
running: pre-alpha JEM 4.x (custom version) + Joomla 4.0.0-beta7 + PHP 7.3

Please Log in or Create an account to join the conversation.

Last edit: by Bluefox.
  • Page:
  • 1
Time to create page: 0.904 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......