You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2014/04/22 10:27:16 UTC

[jira] [Reopened] (WICKET-5563) RestartResponseAtInterceptPageException - add public function to retrieve originalUrl

     [ https://issues.apache.org/jira/browse/WICKET-5563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov reopened WICKET-5563:
-------------------------------------


> RestartResponseAtInterceptPageException - add public function to retrieve originalUrl
> -------------------------------------------------------------------------------------
>
>                 Key: WICKET-5563
>                 URL: https://issues.apache.org/jira/browse/WICKET-5563
>             Project: Wicket
>          Issue Type: Improvement
>            Reporter: Marieke Vandamme
>
> Hi, 
> we have an ecommerce website programmed with wicket, which runs in a kinda complex structure. We have multiple instance running of the same wicket application, but each instance has different database/settings/.. behind it. Each instance runs also on different domain. 
> For example, we have hostnames like this:
> - www.myapp-a.com => goes to wicket-application a
> - www.myapp-b.com => goes to wicket-application b
> - www.myapp-c.com => goes to wicket-application c
> Each login from our ecommerce platform is linked to one specific application instance (f.e. login1 is linked to myapp-a, login2 is linked to myapp-b, ...) When somebody logs in into one of the different instances of the application, the login is then checked, and if not the correct application, the user is then redirected to the correct hostname (f.e. if login2 logs in to myapp-a, he will be redirected to myapp-b).
> To make a long story short... When redirecting to another domain, we want to pass the mounted page and page parameters that where initially asked (before redirecting to login page). 
> Looked into wicket code a bit, this information is stored into the RestartResponseAtInterceptPageException class, but can not be retrieved.
> Is it possible to make such a public function, f. e.:
> static Url getOriginalDestination()
> {
> 	InterceptData data = InterceptData.get();
> 	if (data != null)
> 	{
> 		return data.originalUrl);
> 	}
> }
> Thanks in advance ! Kind Regards, Marieke Vandamme



--
This message was sent by Atlassian JIRA
(v6.2#6252)