Forums / General Questions / Double url's when clicking links

Double url's when clicking links

Locked

Views: 1,687

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
14 Nov 2007, 10:20 PM
#1
callan avatar

callan

New Zenner

Join Date:
Nov 2005
Posts:
18
Plugin Contributions:
0

Double url's when clicking links

I am using Zen Cart v1.3.7 and a template monster template (which btw costed me ten years off of my life).

My problem is that the links within the header (e.g. shopping cart and the news/article component I am using) appear to be doubled.

If you hover your mouse over the link 'more' the following url appears:

http://www.mysite.com/index.php?main_page=http://www.mysite.com/index.php?main_page=shopping_cart

This link will show an 404 error. I don't have a clue since when this is happening and more important: I cannot locate this error. I only experience this error when clicking links within the side box headers.

Can someone help? Is this a Template Monster miss?

Thanks in advance!

Callan.

14 Nov 2007, 10:26 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: Double url's when clicking links

Moderator Note: Thread moved from bug reports.

If you are having a problem with the template you need to talk to TM.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

14 Nov 2007, 10:32 PM
#3
callan avatar

callan

New Zenner

Join Date:
Nov 2005
Posts:
18
Plugin Contributions:
0

Re: Double url's when clicking links

I don't know if this is a TM error as it worked before (even after installing the TM template months ago).

Regards,

Callan.

14 Nov 2007, 10:49 PM
#4
poolprorich avatar

poolprorich

Zen Follower

Join Date:
Aug 2007
Location:
Tampa FL.
Posts:
143
Plugin Contributions:
0

Re: Double url's when clicking links

Hello,

It sounds like the header links you are talking about are being called by a full http:// address when in zencartany link only needs to be called as the link itself as zencart adds the http://www.yoursite.com/prior to the link you are calling for:

sample: for home page

<a href="<?php echo zen_href_link(DIR_WS_CATALOG); ?>" title="Our Home Page"><span><?php echo HEADER_TITLE_CATALOG; ?>

if you have <a href="http://www.yoursite.com " title="Our Home Page">Home</a>
It will auo add the DIR_WS_CATALOG witch will give you this

http://www.yoursite.com/ http://www.yoursite.com/whatever

you should have

<a href="whatever/" title="whatever Page">whatever</a>

14 Nov 2007, 11:12 PM
#5
callan avatar

callan

New Zenner

Join Date:
Nov 2005
Posts:
18
Plugin Contributions:
0

Re: Double url's when clicking links

Hi Rich,

Thanks for your response. However, I am not quite shure what you mean.

It's about the sidebox header link. Indeed the double url causes a 404 error. You can check my store at https://www.envii.eu and check the news side box (and click 'more').

Thanks.

Callan.

14 Nov 2007, 11:23 PM
#7
callan avatar

callan

New Zenner

Join Date:
Nov 2005
Posts:
18
Plugin Contributions:
0

Re: Double url's when clicking links

I understand the problem, but I don't know where to change it. Which file do I need to adapt?

Unfortunately I cannot find it... :-(

15 Nov 2007, 12:05 AM
#8
poolprorich avatar

poolprorich

Zen Follower

Join Date:
Aug 2007
Location:
Tampa FL.
Posts:
143
Plugin Contributions:
0

Re: Double url's when clicking links

i am sorry,

Go to includes/templates/templates_default/tpl_news_scroll_box.php

around line 56 look for

$click_for_more = '<a class="newsBoxContent" href="' . zen_href_link(FILENAME_MORE_NEWS, $newsId) . '">' . TEXT_LINK_MORE . '</a><br />';

is what it should display:

FILENAME_MORE_NEWS is set to modules/ pages/more_news/
from the includes/extra_datafiles/more_news_filenames.php