URL redirect problem

Author Message

SathishKumar Subramanian

Thursday 06 May 2004 8:52:46 am

Hi Everyone,

In my website we are publishing articles. I am trying to redirect the User to the URL of the article's source from a webpage like <b>http://abc.xyz.org/content/view/full/1480.</b>

The article's source URL is <b>http://www.bibleuniversity.com/hopetalk/logon.asp?Lg=en&Cr=2 .</b>

Instead to keep a list of URLs which are leaving from my website I am trying to store the
<b>http://www.bibleuniversity.com/hopetalk/logon.asp?Lg=en&Cr=2 </b> URL to the database.

For that I am sending the source url as an attribute to the page <b>http://abc.xyz.org/urlredirect/redirect </b> (Using modules)

like:
<b>http://abc.xyz.org/urlredirect/redirect?go=http://www.bibleuniversity.com/hopetalk/logon.asp?Lg=en&Cr=2 </b>

From that redirect page (a php page which is in extension/urlredirect/modules/urlredirect/redirect.php) I am trying to direct the user to the webpage http://www.bibleuniversity.com/hopetalk/logon.asp?Lg=en&Cr=2.

But in http://abc.xyz.org/urlredirect/redirect page I am getting the <b>go</b> attribute from the Querystring like <b>http://www.bibleuniversity.com/hopetalk/logon.asp?Lg=en </b>. But my expectation is <b>http://www.bibleuniversity.com/hopetalk/logon.asp?Lg=en&cr=2 </b>.

Please note, the <b>cr=2</b> is missing. How can I get it?

Please help to solve this? Thanx in advance!!! :-)

Sathizh

Dominik Pich

Saturday 08 May 2004 3:50:08 am

urlencode the url prior to passing via GET or do a post.

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

Main resources:

Total runtime1.5082 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 587.8125152.6094
Module start 'layout' 0.00510.0031 740.421939.4141
Module start 'content' 0.00821.4982 779.8359460.4063
Module end 'content' 1.50650.0017 1,240.24228.1875
Script end 1.5081  1,248.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2104160.0002
Check MTime0.00130.0859160.0001
Mysql Total
Database connection0.00070.043810.0007
Mysqli_queries1.467297.2830540.0272
Looping result0.00050.0337520.0000
Template Total1.475397.820.7376
Template load0.00230.155520.0012
Template processing1.472997.664220.7365
Template load and register function0.00020.015210.0002
states
state_id_array0.00130.083710.0013
state_identifier_array0.00090.058420.0004
Override
Cache load0.00190.1253180.0001
Sytem overhead
Fetch class attribute can translate value0.00060.038420.0003
Fetch class attribute name0.00110.073720.0006
XML
Image XML parsing0.00020.013820.0001
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00060.0412100.0001
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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs