Merge branch 'develop' of https://github.com/getgrav/grav-plugin-admin into develop

This commit is contained in:
Andy Miller
2016-04-01 17:17:12 -06:00
2 changed files with 4 additions and 5 deletions

View File

@@ -185,8 +185,7 @@ class Admin
$grav = $this->grav;
$this->setMessage($this->translate('PLUGIN_ADMIN.LOGIN_LOGGED_IN'), 'info');
$redirect_route = $this->uri->route();
$grav->redirect($redirect_route);
$grav->redirect($form['redirect']);
}
}
}

View File

@@ -13,9 +13,9 @@
<form method="post" action="{{ base_url_relative }}">
<div class="padding">
{% block form %}{% endblock %}
{{ nonce_field('admin-form', 'admin-nonce') }}
{% block form %}{% endblock %}
<input type="hidden" name="redirect" value="{{ uri.url }}" />
{{ nonce_field('admin-form', 'admin-nonce') }}
</div>
</form>
</section>