[Answer]-How to test if request.url matches a specific value

1👍

You can do it with as.

{% url 'event_detail' pk=event.id as event_music_url %}
{% if request.url == event_music_url %}
...
{% endif %}

Leave a comment