3
0
Fork 0

fix: avoid request.current_route_url() for user menu

not sure why, at least on chromium browser sometimes that will throw
an error!?  but this works around fine
This commit is contained in:
Lance Edgar 2025-01-07 14:48:51 -06:00
parent 7f09ca5ede
commit e5f7fe43c2

View file

@ -659,7 +659,7 @@
% if request.is_root:
${h.form(url('stop_root'), ref='stopBeingRootForm')}
${h.csrf_token(request)}
<input type="hidden" name="referrer" value="${request.current_route_url()}" />
<input type="hidden" name="referrer" value="${request.url}" />
<a @click="stopBeingRoot()"
class="navbar-item has-background-danger has-text-white">
Stop being root