Redirect after login

Author Message

David Santiso

Sunday 01 May 2011 7:12:16 am

Hi,

I created several links to login on my website. How can I do to make after login the previous page again?

Thanks,

David

Marko Žmak

Monday 02 May 2011 1:05:36 am

A technique I use is to add the URL of the current page in a query string of the login link. Then in the login template capture this value and put it in the RedirectURI input. You can see it in action here:

  • http://www.novilist.hr/hr/Scena/Glazba/Fatheri-predstavili-spot-za-Venus-Mars

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

David Santiso

Monday 02 May 2011 6:18:02 am

I don't understand. Is your link correctly?

http://www.novilist.hr/hr/Scena/Glazba/Fatheri-predstavili-spot-za-Venus-Mars

Marko Žmak

Monday 02 May 2011 6:34:17 am

"

I don't understand. Is your link correctly?

http://www.novilist.hr/hr/Scena/Glazba/Fatheri-predstavili-spot-za-Venus-Mars

"

Yes, it's correct. Look at the button with text "Prijavite se", and then look at it's link. When you click this link you will get a login page which has the url of the previous page in RedirectURI form input.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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 05:15:49
Script start
Timing: Jan 18 2025 05:15:49
Module start 'layout'
Timing: Jan 18 2025 05:15:49
Module start 'content'
Timing: Jan 18 2025 05:15:50
Module end 'content'
Timing: Jan 18 2025 05:15:50
Script end

Main resources:

Total runtime1.3925 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.2578152.6094
Module start 'layout' 0.00590.0045 741.867239.4219
Module start 'content' 0.01041.3806 781.2891546.3125
Module end 'content' 1.39100.0014 1,327.601612.1875
Script end 1.3924  1,339.7891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2523160.0002
Check MTime0.00150.1089160.0001
Mysql Total
Database connection0.00130.095110.0013
Mysqli_queries1.341996.3654600.0224
Looping result0.00060.0417580.0000
Template Total1.359397.620.6797
Template load0.00230.164020.0011
Template processing1.357097.454620.6785
Template load and register function0.00020.011610.0002
states
state_id_array0.00160.114310.0016
state_identifier_array0.00130.090820.0006
Override
Cache load0.00190.1362210.0001
Sytem overhead
Fetch class attribute can translate value0.00050.037720.0003
Fetch class attribute name0.00140.103550.0003
XML
Image XML parsing0.00110.077020.0005
class_abstraction
Instantiating content class attribute0.00000.002360.0000
General
dbfile0.00110.0780180.0001
String conversion0.00000.000640.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 8

Time used to render debug report: 0.0002 secs