fix form powner
This commit is contained in:
parent
4295c65876
commit
272e9d755c
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue