Redirection

Author Message

Trevor Clowry

Monday 11 April 2005 8:43:32 am

When a page is accessed on my site and the user doesnt have the correct privileges to access it, the login page appears. If the user logs in , the user is redirected to the welcome page by a line in the login script
<input type="hidden" name="RedirectURI" value="/welcome" />.
However I was wondering if there is a way to redirect them to the page that they originally tried visited and not to the welcome page.

Thanks in advance,
Trev

Ɓukasz Serwatka

Tuesday 12 April 2005 12:38:12 am

Hi Trevor,

You can use:

<input type="hidden" name="RedirectURI" value="{$User:redirect_uri}" />

After login user will be redirect to page that tried to visit.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Trevor Clowry

Tuesday 12 April 2005 1:46:52 am

Thanks, that worked perfectly.

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 18 2025 22:19:09
Script start
Timing: Jan 18 2025 22:19:09
Module start 'layout'
Timing: Jan 18 2025 22:19:09
Module start 'content'
Timing: Jan 18 2025 22:19:10
Module end 'content'
Timing: Jan 18 2025 22:19:10
Script end

Main resources:

Total runtime0.9918 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.9063152.6094
Module start 'layout' 0.00570.0031 741.515639.3984
Module start 'content' 0.00890.9814 780.9141535.3047
Module end 'content' 0.99030.0014 1,316.21888.2031
Script end 0.9918  1,324.4219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3149160.0002
Check MTime0.00130.1341160.0001
Mysql Total
Database connection0.00090.086410.0009
Mysqli_queries0.945895.3607570.0166
Looping result0.00060.0620550.0000
Template Total0.959696.820.4798
Template load0.00200.205620.0010
Template processing0.957596.544220.4788
Template load and register function0.00020.024510.0002
states
state_id_array0.00110.110610.0011
state_identifier_array0.00070.066320.0003
Override
Cache load0.00160.1649160.0001
Sytem overhead
Fetch class attribute can translate value0.00060.060520.0003
Fetch class attribute name0.00130.134140.0003
XML
Image XML parsing0.00080.080920.0004
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00090.0870180.0000
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs