I want to be able to do an if tag based on the current URL value.
for example, if the current page’s url is accounts/login/ then don’t show a link, without passing a variable from the view.
I am not sure how I can write an {% if %} tag for this, is it possible?
If you pass the “request” object to your template, then you are able to use this: