Merge pull request #6 from bovisp/patch-1

change form action to work with multilang
This commit is contained in:
Flavio Copes 2015-11-13 18:54:24 +01:00
commit 750727911e
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 %}
@ -41,4 +41,4 @@
{% endfor %}
</table>
{% endif %}
{% endif %}
{% endif %}