mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
fixes #4727
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user