redirect after POST

classic Classic list List threaded Threaded
6 messages Options
JCR
Reply | Threaded
Open this post in threaded view
|

redirect after POST

JCR
Hi all,

After modifying or creating a content node, i.e. after a POST, sling
displays a standard page with title e.g.

        Content modified /content/abc/news

How can this page be avoided and the user be redirected to some other
location after such a POST?

Thanks,
Juerg


Reply | Threaded
Open this post in threaded view
|

RE: redirect after POST

Rory Douglas-2
Try passing a form param named:redirect with your POST. Set the value to where you want to go (* works here too if you used * as your POST target).

Rory Douglas
Senior Principal Consultant
Oracle Consulting
(sent from my Blackberry)

----------Original Message----------

From: Juerg Meier <[hidden email]>
Sent: Sat, September 13, 2008 3:30 PM
To: [hidden email]
Subject: redirect after POST


Hi all,

After modifying or creating a content node, i.e. after a POST, sling
displays a standard page with title e.g.

        Content modified /content/abc/news

How can this page be avoided and the user be redirected to some other
location after such a POST?

Thanks,
Juerg


Reply | Threaded
Open this post in threaded view
|

Re: redirect after POST

Felix Meschberger-2
Hi,

In addition, you might -- hopefully -- complete documentation on the
SlingPostSerlvet at [1]

Regards
Felix

[1]
http://incubator.apache.org/sling/site/manipulating-content-the-slingpostservlet.html


Rory Douglas schrieb:

> Try passing a form param named:redirect with your POST. Set the value to where you want to go (* works here too if you used * as your POST target).
>
> Rory Douglas
> Senior Principal Consultant
> Oracle Consulting
> (sent from my Blackberry)
>
> ----------Original Message----------
>
> From: Juerg Meier <[hidden email]>
> Sent: Sat, September 13, 2008 3:30 PM
> To: [hidden email]
> Subject: redirect after POST
>
>
> Hi all,
>
> After modifying or creating a content node, i.e. after a POST, sling
> displays a standard page with title e.g.
>
> Content modified /content/abc/news
>
> How can this page be avoided and the user be redirected to some other
> location after such a POST?
>
> Thanks,
> Juerg
>
>

JCR
Reply | Threaded
Open this post in threaded view
|

RE: redirect after POST

JCR
In reply to this post by Rory Douglas-2
Thanks Rory, worked delightfully!
-- Juerg

On Sun, 2008-09-14 at 12:05 -0700, Rory Douglas wrote:

> Try passing a form param named:redirect with your POST. Set the value to where you want to go (* works here too if you used * as your POST target).
>
> Rory Douglas
> Senior Principal Consultant
> Oracle Consulting
> (sent from my Blackberry)
>
> ----------Original Message----------
>
> From: Juerg Meier <[hidden email]>
> Sent: Sat, September 13, 2008 3:30 PM
> To: [hidden email]
> Subject: redirect after POST
>
>
> Hi all,
>
> After modifying or creating a content node, i.e. after a POST, sling
> displays a standard page with title e.g.
>
> Content modified /content/abc/news
>
> How can this page be avoided and the user be redirected to some other
> location after such a POST?
>
> Thanks,
> Juerg
>


JCR
Reply | Threaded
Open this post in threaded view
|

Re: redirect after POST

JCR
In reply to this post by Felix Meschberger-2
Hi Felix,

who do you mean exactly with this statement?

-- Juerg

On Mon, 2008-09-15 at 08:58 +0200, Felix Meschberger wrote:

> Hi,
>
> In addition, you might -- hopefully -- complete documentation on the
> SlingPostSerlvet at [1]
>
> Regards
> Felix
>
> [1]
> http://incubator.apache.org/sling/site/manipulating-content-the-slingpostservlet.html
>
>
> Rory Douglas schrieb:
> > Try passing a form param named:redirect with your POST. Set the value to where you want to go (* works here too if you used * as your POST target).
> >
> > Rory Douglas
> > Senior Principal Consultant
> > Oracle Consulting
> > (sent from my Blackberry)
> >
> > ----------Original Message----------
> >
> > From: Juerg Meier <[hidden email]>
> > Sent: Sat, September 13, 2008 3:30 PM
> > To: [hidden email]
> > Subject: redirect after POST
> >
> >
> > Hi all,
> >
> > After modifying or creating a content node, i.e. after a POST, sling
> > displays a standard page with title e.g.
> >
> > Content modified /content/abc/news
> >
> > How can this page be avoided and the user be redirected to some other
> > location after such a POST?
> >
> > Thanks,
> > Juerg
> >
> >


Reply | Threaded
Open this post in threaded view
|

Re: redirect after POST

Felix Meschberger-2
Hi Jürg,

Juerg Meier schrieb:
> Hi Felix,
>
> who do you mean exactly with this statement?

Everybody ;-) Its just meant as an addition to Rory's note.

Regards
Felix

>
> -- Juerg
>
> On Mon, 2008-09-15 at 08:58 +0200, Felix Meschberger wrote:
>> Hi,
>>
>> In addition, you might -- hopefully -- complete documentation on the
>> SlingPostSerlvet at [1]
>>
>> Regards
>> Felix
>>
>> [1]
>> http://incubator.apache.org/sling/site/manipulating-content-the-slingpostservlet.html
>>
>>
>> Rory Douglas schrieb:
>>> Try passing a form param named:redirect with your POST. Set the value to where you want to go (* works here too if you used * as your POST target).
>>>
>>> Rory Douglas
>>> Senior Principal Consultant
>>> Oracle Consulting
>>> (sent from my Blackberry)
>>>
>>> ----------Original Message----------
>>>
>>> From: Juerg Meier <[hidden email]>
>>> Sent: Sat, September 13, 2008 3:30 PM
>>> To: [hidden email]
>>> Subject: redirect after POST
>>>
>>>
>>> Hi all,
>>>
>>> After modifying or creating a content node, i.e. after a POST, sling
>>> displays a standard page with title e.g.
>>>
>>> Content modified /content/abc/news
>>>
>>> How can this page be avoided and the user be redirected to some other
>>> location after such a POST?
>>>
>>> Thanks,
>>> Juerg
>>>
>>>
>
>