You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "chathuraka.waas" <ch...@gmail.com> on 2014/04/03 06:32:31 UTC

Redirecting users to my new pages with a message.

Hi,

As a customer request my application domain is changing. and i need to show
a popup message box saying that you are being redirected to the new site
since some users can bookmark the older url. 

The application support team has configured both old and new urls to be
pointed to the same application instance. 

Whats the best way to show users a splash screen when a users comes from the
old urls and redirect him to the new page. 

Best Regards, 



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirecting-users-to-my-new-pages-with-a-message-tp4665239.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Redirecting users to my new pages with a message.

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Thanks for pointing out the correct information: I know recall the detail
of the discussion of the DEVs list. Maybe I should refrain form answering
so early in the morning.


On Thu, Apr 3, 2014 at 8:46 AM, Martin Grigorov <mg...@apache.org>wrote:

> Hi,
>
> RedirectPage won't be removed in Wicket 7.
> IRedirectListener has been removed and RedirectPage now uses the more
> idiomatic #urlFor() method.
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Thu, Apr 3, 2014 at 6:49 AM, Ernesto Reinaldo Barreiro <
> reiern70@gmail.com> wrote:
>
> > There is a RedirectPage that maybe you can use as example (because it
> will
> > no longer be present at Wicket 7).
> >
> >
> > On Thu, Apr 3, 2014 at 6:32 AM, chathuraka.waas
> > <ch...@gmail.com>wrote:
> >
> > > Hi,
> > >
> > > As a customer request my application domain is changing. and i need to
> > show
> > > a popup message box saying that you are being redirected to the new
> site
> > > since some users can bookmark the older url.
> > >
> > > The application support team has configured both old and new urls to be
> > > pointed to the same application instance.
> > >
> > > Whats the best way to show users a splash screen when a users comes
> from
> > > the
> > > old urls and redirect him to the new page.
> > >
> > > Best Regards,
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/Redirecting-users-to-my-new-pages-with-a-message-tp4665239.html
> > > Sent from the Users forum mailing list archive at Nabble.com.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>



-- 
Regards - Ernesto Reinaldo Barreiro

Re: Redirecting users to my new pages with a message.

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

RedirectPage won't be removed in Wicket 7.
IRedirectListener has been removed and RedirectPage now uses the more
idiomatic #urlFor() method.

Martin Grigorov
Wicket Training and Consulting


On Thu, Apr 3, 2014 at 6:49 AM, Ernesto Reinaldo Barreiro <
reiern70@gmail.com> wrote:

> There is a RedirectPage that maybe you can use as example (because it will
> no longer be present at Wicket 7).
>
>
> On Thu, Apr 3, 2014 at 6:32 AM, chathuraka.waas
> <ch...@gmail.com>wrote:
>
> > Hi,
> >
> > As a customer request my application domain is changing. and i need to
> show
> > a popup message box saying that you are being redirected to the new site
> > since some users can bookmark the older url.
> >
> > The application support team has configured both old and new urls to be
> > pointed to the same application instance.
> >
> > Whats the best way to show users a splash screen when a users comes from
> > the
> > old urls and redirect him to the new page.
> >
> > Best Regards,
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/Redirecting-users-to-my-new-pages-with-a-message-tp4665239.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>

Re: Redirecting users to my new pages with a message.

Posted by Martin Grigorov <mg...@apache.org>.
Hi,


On Thu, Apr 3, 2014 at 7:05 AM, chathuraka.waas
<ch...@gmail.com>wrote:

> Hi,
>
> Thanks for the reply. I read the api documentation on RedirectPage. my
> question is how can i intercept the request which was sent from the old
> url.
>
> as an example
>
> my old url for login is : http://abc.com/login
> my new url is            : http://def.com/login
>
> if both abc.com and def.com are pointed to the same application how can i
> intercept request coming through abc.com/login and show a message and
> redirect to def.com/login


For this you can create a custom IRequestMapper, set it as root mapper and
intercept all requests.
When the current request url is old then show a special page that redirects
to the new url after some delay.

See
http://apache-wicket.1842946.n4.nabble.com/mounting-mapping-subdomain-HomePage-td4664880.html#a4664897for
inspiration.


>
>
>
> Regards,
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Redirecting-users-to-my-new-pages-with-a-message-tp4665239p4665241.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Redirecting users to my new pages with a message.

Posted by "chathuraka.waas" <ch...@gmail.com>.
Hi,

Thanks for the reply. I read the api documentation on RedirectPage. my
question is how can i intercept the request which was sent from the old url. 

as an example 

my old url for login is : http://abc.com/login
my new url is            : http://def.com/login

if both abc.com and def.com are pointed to the same application how can i
intercept request coming through abc.com/login and show a message and
redirect to def.com/login


Regards,


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirecting-users-to-my-new-pages-with-a-message-tp4665239p4665241.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Redirecting users to my new pages with a message.

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
There is a RedirectPage that maybe you can use as example (because it will
no longer be present at Wicket 7).


On Thu, Apr 3, 2014 at 6:32 AM, chathuraka.waas
<ch...@gmail.com>wrote:

> Hi,
>
> As a customer request my application domain is changing. and i need to show
> a popup message box saying that you are being redirected to the new site
> since some users can bookmark the older url.
>
> The application support team has configured both old and new urls to be
> pointed to the same application instance.
>
> Whats the best way to show users a splash screen when a users comes from
> the
> old urls and redirect him to the new page.
>
> Best Regards,
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Redirecting-users-to-my-new-pages-with-a-message-tp4665239.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro