fix: use request.url
instead of current_route_url()
latter was causing more problems for sideshow tests
This commit is contained in:
parent
e674db86be
commit
3827d331c0
|
@ -18,7 +18,7 @@
|
||||||
<br />
|
<br />
|
||||||
${self.buttons_content()}
|
${self.buttons_content()}
|
||||||
|
|
||||||
${h.form(request.current_route_url(), enctype='multipart/form-data', ref='saveSettingsForm', **{'@submit': 'saveSettingsFormSubmit'})}
|
${h.form(request.url, enctype='multipart/form-data', ref='saveSettingsForm', **{'@submit': 'saveSettingsFormSubmit'})}
|
||||||
${h.csrf_token(request)}
|
${h.csrf_token(request)}
|
||||||
<div class="wutta-form-wrapper">
|
<div class="wutta-form-wrapper">
|
||||||
${self.form_content()}
|
${self.form_content()}
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
<b-button @click="purgeSettingsShowDialog = false">
|
<b-button @click="purgeSettingsShowDialog = false">
|
||||||
Cancel
|
Cancel
|
||||||
</b-button>
|
</b-button>
|
||||||
${h.form(request.current_route_url(), **{'@submit': 'purgingSettings = true'})}
|
${h.form(request.url, **{'@submit': 'purgingSettings = true'})}
|
||||||
${h.csrf_token(request)}
|
${h.csrf_token(request)}
|
||||||
${h.hidden('remove_settings', 'true')}
|
${h.hidden('remove_settings', 'true')}
|
||||||
<b-button type="is-danger"
|
<b-button type="is-danger"
|
||||||
|
@ -107,7 +107,7 @@
|
||||||
icon-left="save">
|
icon-left="save">
|
||||||
{{ savingSettings ? "Working, please wait..." : "Save All Settings" }}
|
{{ savingSettings ? "Working, please wait..." : "Save All Settings" }}
|
||||||
</b-button>
|
</b-button>
|
||||||
<b-button tag="a" href="${request.current_route_url()}"
|
<b-button tag="a" href="${request.url}"
|
||||||
icon-pack="fas"
|
icon-pack="fas"
|
||||||
icon-left="undo"
|
icon-left="undo"
|
||||||
@click="undoChanges = true"
|
@click="undoChanges = true"
|
||||||
|
|
|
@ -1178,7 +1178,7 @@ class MasterView(View):
|
||||||
self.request.session.flash("Settings have been saved.")
|
self.request.session.flash("Settings have been saved.")
|
||||||
|
|
||||||
# reload configure page
|
# reload configure page
|
||||||
return self.redirect(self.request.current_route_url())
|
return self.redirect(self.request.url)
|
||||||
|
|
||||||
# render configure page
|
# render configure page
|
||||||
context = self.configure_get_context()
|
context = self.configure_get_context()
|
||||||
|
|
Loading…
Reference in a new issue