Problem with canceling user profile edit

Author Message

Viktor Juhász

Friday 05 May 2006 1:04:17 pm

I have a problem with canceling user profile editing.

If I click on Cancel button after editing, a wrong page loading: /users/guest_accounts/user_name.

It has to go back to the profile page, or the page where the user edit the profile before.

I use eZp 3.6.7.

Whats wrong? Any idea?

Regards,
Viktor

Łukasz Serwatka

Sunday 14 May 2006 11:46:27 pm

Hi,

You can use one of this 2 hidden variables to control redirection:

<input type="hidden" name="CancelURI" value="/path/somewhere" />
<input type="hidden" name="RedirectURIAfterPublish" value="/path/somewhere" />
<input type="hidden" name="RedirectIfDiscarded" value="/path/somewhere" />

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

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 31 2025 01:15:33
Script start
Timing: Jan 31 2025 01:15:33
Module start 'layout'
Timing: Jan 31 2025 01:15:33
Module start 'content'
Timing: Jan 31 2025 01:15:33
Module end 'content'
Timing: Jan 31 2025 01:15:33
Script end

Main resources:

Total runtime0.0261 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.2656151.2266
Module start 'layout' 0.00550.0047 739.4922220.7188
Module start 'content' 0.01020.0145 960.2109997.9609
Module end 'content' 0.02470.0014 1,958.171929.9922
Script end 0.0261  1,988.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002810.7442140.0002
Check MTime0.00124.5571140.0001
Mysql Total
Database connection0.00093.572910.0009
Mysqli_queries0.003011.561530.0010
Looping result0.00000.072110.0000
Template Total0.00103.810.0010
Template load0.00082.961810.0008
Template processing0.00020.841910.0002
Override
Cache load0.00052.061510.0005
General
dbfile0.00238.957380.0003
String conversion0.00000.038340.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