Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Wrong URL showing in header of search page

Quote Reply
Wrong URL showing in header of search page
Just noticed that the <BASE HREF="http://mydomain.com/cgi-bin/links/"> <--wrong>
Instead of <BASE HREF="http://mydomain.com/links/"> <--correct>
Where could I change it?

I'm getting a wrong URL in the header of the search pages.
They come out showing http://mydomain/cgi-bin/links, etc. i.e. always with /cgi-bin/ (but only on the header of the search pages. All others show fine.
I don't know what could be causing the problem...lack of sleep? I've rechecked the links.cfg,
but can't find any problem.
My search templates have:
<map name="tabs"><area shape="rect" coords="0, 0, 80, 32" href="<%build_root_url%>"><area shape="rect" coords="200, 15, 273, 32" href="index.htm"><area shape="rect" coords="276, 15, 348, 32" href=""><area shape="rect" coords="349, 15, 432, 32" href="games.htm">


Here is my links.cfg
$build_root_url='http://mydomain.com/links';
$build_root_path='/usr/local/etc/httpd/htdocs/links';
$db_script_path='/www/cgi-bin/links/admin';
$imagesurl='http://mydomain.com/links/images';
$db_cgi_url='http://mydomain.com/cgi-bin/links';
$db_dir_url='http://mydomain.com/cgi-bin/links/admin';

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "$build_root_path/New";
$build_new_url = "$build_root_url/New";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "$build_root_path/Cool";
$build_cool_url = "$build_root_url/Cool";

# PATH and URL of What's Cool page. No Trailing slash.
$build_top_path = "$build_root_path/Top";
$build_top_url = "$build_root_url/Top";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$build_root_path/Ratings";
$build_ratings_url = "$build_root_url/Ratings";

Quote Reply
Re: Wrong URL showing in header of search page In reply to
Try improving your html skills ;)

Use full paths/url's or have a think about where pages are actually viewed from as opposed to where they are stored - eg search.html is stored in the templates directory but viewed from the cgi-bin

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Wrong URL showing in header of search page In reply to
Thank you.
In other words, take out the [href="<%build_root_url%>">] from the search templates.
But, then another question, why does it work with all other templates, which are also stored in the cgi-bin directory?

Is it my links.cfg, or I leave the [href="<%build_root_url%>">], like it is and put full URL paths?!
I think the latter is the better one? Or, am I wrong?

Again, thank you for taking the time. I know everyone is busy. :)

Quote Reply
Re: Wrong URL showing in header of search page In reply to
'They come out showing http://mydomain/cgi-bin/links, etc. i.e. always with /cgi-bin/ (but only on the header of the search pages. All others show fine.'

Sounds like your not using the full url.

'Is it my links.cfg, '

What have you got for $build_root_url?

Glenn

Links 2 Mods Site:
http://cgi-resource.co.uk/pages/links2mods.shtml