From ad29f9185a90c07c95568f81b17b59b314761df8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 21 Mar 2011 16:14:52 +0100 Subject: [PATCH] Add original URL when redirecting to login page. --- src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java b/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java index a7df9c2..5604c82 100644 --- a/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java +++ b/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java @@ -204,7 +204,7 @@ public class SoneTemplatePage extends TemplatePage { @Override protected String getRedirectTarget(Page.Request request) { if (requiresLogin() && (getCurrentSone(request.getToadletContext(), false) == null)) { - return "login.html"; + return "login.html?target=" + request.getHttpRequest().getPath(); } return null; } -- 2.7.4