title: Django Templates: Comparing current url with {% url xyz %}
body: <p>I am trying change the active selection of my navigation links based on the current page where the user is at.</p>
  
  <p>I am trying to do omething like this:</p>
  
  <pre><code>&lt;li {% if request.get_full_path == {% url profile_edit_personal %} %}class="current"{% endif %}&gt;&lt;a href="{% url profile_edit_personal %}"&gt;Personal Details&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>Alternatively, I know I could define do something like this:</p>
  
  <pre><code>&lt;li class="{% block current %}{% endblock %}"&gt;&lt;a href="{% url profile_edit_personal %}"&gt;Personal Details&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>and add a <code>{% block current %}current{% endblock %}</code> to each of the relevant templates but I would prefer something like what Im trying to achieve in the first example if possible</p>
  
  <p>Thanks!</p>