Improved session auth module routing.

This commit is contained in:
2016-04-13 12:53:10 +02:00
parent bd3fe63976
commit 816f0eb820
2 changed files with 6 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
note
description: "Module Auth"
date: "$Date$"
revision: "$Revision$"
date: "$Date: 2016-04-13 10:59:18 +0200 (mer., 13 avr. 2016) $"
revision: "$Revision: 98616 $"
class
CMS_AUTHENTICATION_MODULE
@@ -159,7 +159,7 @@ feature -- Hooks configuration
l_url_name := "site_sign_in_url"
l_url := a_response.url (roc_login_location, Void)
end
if l_destination /= Void then
if l_destination /= Void and then not l_url.has_substring ("?destination") then
l_url.append ("?destination=" + percent_encoded (l_destination))
end
a_value.force (l_url, l_url_name)