I have a Django template base.html:
// inside the javascript
var this_page = "{{ this_page }}";
// inside the HTML part
{% ifnotequal this_page "home" %}
...Some HTML...
{% endifnotequal %}
The part inside the javascript area is incorrect. Actually, Firebug shows me in the HTML tab:
var this_page = "home";
but if I look into the GET inside the Console tab, Firebug shows:
var this_page = "about";
which would be correct, but debugging shows that 'this_page' is set to 'home'. I also tried it:
{% ifnotequal this_page "home" %}
do some javascript
{% endifnotequal %}
but that did also not work correctly.
What am I doing wrong?
EDIT: This problem only occurs when I access this page via a link. If I access the "about" page directly, I do not have this problem.
Testing on Ubuntu, Firefox 6.0.2, on 'runserver'