Commit b8bf8efa authored by Piotr Gawron's avatar Piotr Gawron
Browse files

fix when there is no redirection url defined

parent 6f921dfd
......@@ -52,7 +52,10 @@
}
function init() {
$("#from")[0].value = minerva.GuiConnector.getParams["from"];
var fromPage = minerva.GuiConnector.getParams["from"];
if (fromPage !== undefined && fromPage !== null && fromPage !== "") {
$("#from")[0].value = minerva.GuiConnector.getParams["from"];
}
$('#login').click(function (e) {
if (!loggedIn) {
e.preventDefault();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment