Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Problem with dynamic pages and replacing root URL

Quote Reply
Problem with dynamic pages and replacing root URL
Hello all, I have the problem inside dynamic pages when root URL in setup and root URL somewhere in the page are the same. For example, I have domain http://www.somedomain.com and choose it in setup like URL to HTML and CGI pages. Also, on this domain I have my own tracking system, f.e. http://www.somedomain.com/tracking/track.php. When inserting this URL into template, I have on output instead of original: http://www.somedomain.com/page.cgi?p=tracking/track.php
Of course it generates an error.
I don't want to set dynamic_pages to "No", but how to avoid this another way?
Thanks in advance.

Quote Reply
Re: Problem with dynamic pages and replacing root URL In reply to
Hi,

Easiest solution would be to put your build_root_url into /pages/ or some sub directory. Alternatively edit Links.pm sub clean_output (line 408) and change:

if ($url =~ /\.(jpe?g|gif|cgi|pl)/) {

to:

if ($url =~ /\.(jpe?g|gif|cgi|pl|php)/) {

Cheers,

Alex

--
Gossamer Threads Inc.