I am trying to determine the previous page (e.g. the referrer) in order to decide whether to display the back button.
I tried to check for $('.current').data('referrer')
, but it is not always set. In fact, it is often not set. history.previous
and document.referrer
do not seem to be set, either.
Could someone please enlighten me on this?