Forums / Developer / Why 'RedirectURI' is not working ?!

Why 'RedirectURI' is not working ?!

Author Message

Selmah Maxim

Saturday 05 July 2003 1:44:02 am

Hi ..

Any1 knows why hidden input 'RedirectURI' is not working ?
am trying to redirect users after submitting to another page, no need to redirect them to the parent node page !!

any help ?

Selmah Maxim

Wednesday 16 July 2003 3:38:59 am

any comment ?!

Jan Borsodi

Wednesday 16 July 2003 4:11:14 am

What functionality are you referring to? Not all functionality supports redirect uris from templates.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Selmah Maxim

Wednesday 16 July 2003 4:56:57 am

user profile editing, and custom class I made !

Selmah Maxim

Wednesday 16 July 2003 5:12:29 am

the probelem start when user submit his profile he will be redirect to user/<gruop>/list , and he have no access to this page !

Also when edit custom class and submited he will be redirect to main page, i wanna redirect him to another module, such thx, to fill in more details, I had tried befor with workflow, but the approve workflow will not jump to the next workflow in the list, its go to the main page !

Coz of this I had edited befor the edit.php, and added some lines to detect if 'RedirectURI' has value, if yes then redirect him to 'RedirectURI' value.
would please make edit.php detect this ?

-------------------
if($http->hasVariable( 'RedirectURI' ))
{
$Page = $http->Variable( 'RedirectURI' );
$module->redirectTo( $Page );
$hasRedirected = true;
if(!$Page) $hasRedirected = false;
//and !$hasRedirected
}
//
if ( $http->hasSessionVariable( 'ParentObject' ) && $http->sessionVariable( 'NewObjectID' ) == $object->attribute( 'id' ) and !$hasRedirected)
{
.
.

__________________

?

Selmah Maxim

Wednesday 16 July 2003 6:18:26 am

Jan .. or any one from ez crew .. can this be done or should I search for another solution, I don`t wanna modify the code by my slef to gain the upgarde vis svn !

Selmah Maxim

Wednesday 16 July 2003 7:54:52 am

?!

Selmah Maxim

Wednesday 16 July 2003 3:32:47 pm

any help pls ?!

Selmah Maxim

Thursday 17 July 2003 12:57:38 am

any comment ?!

Jan Borsodi

Thursday 17 July 2003 1:32:35 am

I just added support for RedirectURI, see
http://ez.no/developer/ez_publish_3/documentation/customization/tips_tricks/redirecting_after_content_publishing

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Selmah Maxim

Thursday 17 July 2003 1:43:19 am

THX ALOT ... alot ..alot ..ot....t...t..t..t

:)

eZ debug

Timing: Jan 30 2025 21:43:50
Script start
Timing: Jan 30 2025 21:43:50
Module start 'content'
Timing: Jan 30 2025 21:43:50
Module end 'content'
Timing: Jan 30 2025 21:43:51
Script end

Main resources:

Total runtime0.2902 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 587.9297370.2969
Module start 'content' 0.00840.0116 958.22661,009.5313
Module end 'content' 0.02000.2701 1,967.75783,897.7422
Script end 0.2902  5,865.5000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00461.5959200.0002
Check MTime0.00140.4726200.0001
Mysql Total
Database connection0.00080.287710.0008
Mysqli_queries0.195367.28661410.0014
Looping result0.00160.53971390.0000
Template Total0.269792.910.2697
Template load0.00070.246410.0007
Template processing0.269092.681710.2690
Override
Cache load0.00050.170110.0005
Sytem overhead
Fetch class attribute can translate value0.00190.663310.0019
XML
Image XML parsing0.00020.084810.0002
General
dbfile0.00451.5442200.0002
String conversion0.00000.002030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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