change form action to work with multilang

This commit is contained in:
Paul Bovis 2015-11-13 10:46:28 -07:00
parent dc4481dd8f
commit 87aff18ae9
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<h3>{{'PLUGIN_COMMENTS.ADD_COMMENT'|t}}</h3>
<form name="{{ grav.config.plugins.comments.form.name }}"
action="{{ uri.rootUrl ~ (grav.config.plugins.comments.form.action|default(page.route)) }}"
action="{{ grav.config.plugins.comments.form.action ? base_url ~ grav.config.plugins.comments.form.action : page.url }}"
method="{{ grav.config.plugins.comments.form.method|upper|default('POST') }}">
{% for field in grav.config.plugins.comments.form.fields %}