#26 Return to same page after editing or deleting bookmark

This commit is contained in:
Sascha Ißbrücker
2020-09-13 10:56:03 +02:00
parent 3373667c72
commit c80f26dd34
8 changed files with 55 additions and 16 deletions

View File

@@ -21,9 +21,9 @@
{% endif %}
</div>
<div class="actions">
<a href="{% url 'bookmarks:edit' bookmark.id %}"
<a href="{% url 'bookmarks:edit' bookmark.id %}?return_url={{ return_url }}"
class="btn btn-link btn-sm">Edit</a>
<a href="{% url 'bookmarks:remove' bookmark.id %}"
<a href="{% url 'bookmarks:remove' bookmark.id %}?return_url={{ return_url }}"
class="btn btn-link btn-sm"
onclick="return confirm('Do you really want to delete this bookmark?')">Remove</a>
</div>