How to skip interstitial in a django view if a user hits the back button?
Posted
by Jose Boveda
on Stack Overflow
See other posts from Stack Overflow
or by Jose Boveda
Published on 2010-04-05T20:12:59Z
Indexed on
2010/04/06
3:33 UTC
Read the original article
Hit count: 224
I have an application with an interstitial page to hold the user while an intensive operation runs in the background (takes anywhere from 30 secs to 1 minute). Once the operation is done, the user is redirected to the results page.
Once on the result page, typical user behavior is to hit the 'back' button to perform the operation on a different input set. However, the back button takes them to the interstitial, not the original form. The desired behavior is to go back to the original form, skipping the interstitial entirely. I'd like this to be default behavior if the user goes to the interstitial page from anywhere but the original form.
I thought I could create this by using the @never_cache
function decorator in my view for the interstitial, and logic based on request.META['HTTP_REFERER']
, however the page doesn't respect these. The browser's back button still trumps this behavior.
Any ideas on how to solve this issue?
© Stack Overflow or respective owner