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:
parent
7f09ca5ede
commit
e5f7fe43c2
|
@ -659,7 +659,7 @@
|
||||||
% if request.is_root:
|
% if request.is_root:
|
||||||
${h.form(url('stop_root'), ref='stopBeingRootForm')}
|
${h.form(url('stop_root'), ref='stopBeingRootForm')}
|
||||||
${h.csrf_token(request)}
|
${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()"
|
<a @click="stopBeingRoot()"
|
||||||
class="navbar-item has-background-danger has-text-white">
|
class="navbar-item has-background-danger has-text-white">
|
||||||
Stop being root
|
Stop being root
|
||||||
|
|
Loading…
Reference in a new issue