Merge pull request #4745 from pichalite/issue-4727

fixes #4727
v1.18.x
Barış Soner Uşaklı 9 years ago
commit 8a8e4062e2

@ -57,10 +57,11 @@ define('forum/login', ['csrf', 'translator'], function(csrf, translator) {
// Add "returnTo" data if present
if (app.previousUrl) {
if (app.previousUrl && $('#returnTo').length === 0) {
var returnToEl = document.createElement('input');
returnToEl.type = 'hidden';
returnToEl.name = 'returnTo';
returnToEl.id = 'returnTo';
returnToEl.value = app.previousUrl;
$(returnToEl).appendTo(formEl);
}

Loading…
Cancel
Save