Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FieldtypeComments: default action URL incorrect if template trailing slash setting is "No" #866

Toutouwai opened this issue Apr 29, 2019 · 0 comments


None yet
1 participant
Copy link

commented Apr 29, 2019

Short description of the issue

The default action URL defined in CommentForm.php is './', but if the template setting "Should page URLs end with a slash?" is "No" then the comment form submits to the parent page.

Although a custom action can be supplied to renderForm() in the $options array it may not be obvious that this is necessary or what is causing the comment form to submit to the wrong URL.

Related forum topic:

Suggestion for a possible fix

Set the action to the current page URL in the CommentForm constructor.

At line 80:

'action' => '', 

At line 164:

// default action
$this->options['attrs']['action'] = $this->wire('page')->url;


  • ProcessWire version: 3.0.130
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.