[Answered ]-Django get_absolute_url calling same URL as current page

1👍

The issue is not get_absolute_url itself: that will return an empty string, since there is no new_review in the context.

You should work with:

<a href="{% url 'new_review' pk=listing_detail.pk %}">+ New Review</a>

Leave a comment