This project is read-only.

Redirect after publish a content

Topics: Writing modules
Jan 16, 2012 at 5:25 PM

How can I modify my module to redirect to the content that has just been published?

Jan 16, 2012 at 5:35 PM

From your controller use one of the Redirect functions.

Jan 17, 2012 at 3:32 PM

My module doesn't have a controller.

I follow the instructions from to create my module.

Or you mean the Editor function in the Driver?

Jan 17, 2012 at 3:47 PM

Ah right.

I misunderstood because normally content does redirect after it's published.

But actually I just realised that's only when you click "Edit" in the front-end.

Unfortunately it only redirects to "returnUrl" from the querystring and as far as I can see there's no way to override the controller to go somewhere else (without implementing your own controller which seems a bit excessive).

It's worth considering that this might be good default behaviour (with an option to disable it). Anyone have any thoughts?