fix admin URLs: use url_for so ProxyFix includes sub-path prefix
This commit is contained in:
@@ -107,10 +107,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="danger-zone">
|
<div class="danger-zone">
|
||||||
<div class="danger-label">danger zone</div>
|
<div class="danger-label">danger zone</div>
|
||||||
<form method="post" action="reset" onsubmit="return confirm('delete ALL pictures, previews and db records? this cannot be undone.')">
|
<form method="post" action="{{ url_for('admin_reset') }}" onsubmit="return confirm('delete ALL pictures, previews and db records? this cannot be undone.')">
|
||||||
<button type="submit" class="btn-reset">reset everything</button>
|
<button type="submit" class="btn-reset">reset everything</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<a class="back" href="..">← back to slideshow</a>
|
<a class="back" href="{{ url_for('slideshow') }}">← back to slideshow</a>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user