I am trying to use request.env.http_referer
but it seems I am missing something.
This is what I tried in the View
:
{{if request.env.http_referer != 'http://127.0.0.1:8000/test_wp/default/show_test/1':}}
<h1>Something</h1>
{{pass}}
This works but depending on the args
, the URL will have a different ending. How can I make this work with any number at the and of the URL after the show_test
?