fix form powner

This commit is contained in:
Simon Vieille 2022-01-29 22:36:16 +01:00
parent 4295c65876
commit 272e9d755c

View file

@ -13,7 +13,12 @@ FormPnw.prototype.init = function () {
for (let i = 0, len = forms.length; i < len; i++) {
const form = forms[i]
let action = form.getAttribute('action')
action = action.replace(Routing.generate('blog_tech_form_without_javascript', [], false) + '?page=', '')
action = action.replace(
Routing.generate('blog_tech_form_without_javascript', {
_domain: window.location.hostname
}, false) + '?page=', ''
)
action = decodeURIComponent(action)
form.setAttribute('action', action)