Control redirection after form submission

Author Message

Damien MARTIN

Thursday 14 January 2010 8:13:06 am

Hi there,

I have a problem with the eZ redirection system.

In fact, it looks like eZ redirect to the previously accessed page after /user/login and /content/action.

But my problem is that when I have loaded a page I need to send AJAX requests and so, I modify the last accessed URL.

So, I would like to know how I can control the redirection URL manually.

Do you have any idea ?

Peter Keung

Thursday 14 January 2010 11:44:43 am

When posting to the default /user/login view, you can send a hidden input field named "UserRedirectURI" that will take precedence over the last accessed URL stored in the session.

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

Damien MARTIN

Friday 15 January 2010 1:45:48 am

Hi Peter,

UserRedirectURI works fine !

Thank you very much for the tip.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 00:55:26
Script start
Timing: Jan 30 2025 00:55:26
Module start 'layout'
Timing: Jan 30 2025 00:55:26
Module start 'content'
Timing: Jan 30 2025 00:55:26
Module end 'content'
Timing: Jan 30 2025 00:55:26
Script end

Main resources:

Total runtime0.0130 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0042 588.2656151.2266
Module start 'layout' 0.00420.0024 739.492236.6797
Module start 'content' 0.00670.0049 776.171990.1875
Module end 'content' 0.01160.0014 866.359433.9922
Script end 0.0129  900.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002116.0888140.0001
Check MTime0.00107.8337140.0001
Mysql Total
Database connection0.00064.545310.0006
Mysqli_queries0.002318.068930.0008
Looping result0.00000.093910.0000
Template Total0.00108.010.0010
Template load0.00086.306410.0008
Template processing0.00021.650710.0002
Override
Cache load0.00064.260110.0006
General
dbfile0.001511.808580.0002
String conversion0.00000.053440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs