3
0
Fork 0

fix: use request.url instead of current_route_url()

latter was causing more problems for sideshow tests
This commit is contained in:
Lance Edgar 2025-01-09 12:13:11 -06:00
parent e674db86be
commit 3827d331c0
2 changed files with 4 additions and 4 deletions

View file

@ -18,7 +18,7 @@
<br />
${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)}
<div class="wutta-form-wrapper">
${self.form_content()}
@ -53,7 +53,7 @@
<b-button @click="purgeSettingsShowDialog = false">
Cancel
</b-button>
${h.form(request.current_route_url(), **{'@submit': 'purgingSettings = true'})}
${h.form(request.url, **{'@submit': 'purgingSettings = true'})}
${h.csrf_token(request)}
${h.hidden('remove_settings', 'true')}
<b-button type="is-danger"
@ -107,7 +107,7 @@
icon-left="save">
{{ savingSettings ? "Working, please wait..." : "Save All Settings" }}
</b-button>
<b-button tag="a" href="${request.current_route_url()}"
<b-button tag="a" href="${request.url}"
icon-pack="fas"
icon-left="undo"
@click="undoChanges = true"

View file

@ -1178,7 +1178,7 @@ class MasterView(View):
self.request.session.flash("Settings have been saved.")
# reload configure page
return self.redirect(self.request.current_route_url())
return self.redirect(self.request.url)
# render configure page
context = self.configure_get_context()