1👍
✅
It’s because you are using a button instead of a link.
Try changing to:
<a href="{% url 'example' param1 param2 %}" target="_self"> Edit </a>
Source:stackexchange.com