Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2005
    Posts
    18
    Plugin Contributions
    0

    Default 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...=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.

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default 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.

  3. #3
    Join Date
    Nov 2005
    Posts
    18
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Aug 2007
    Location
    Tampa FL.
    Posts
    142
    Plugin Contributions
    0

    Default 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>

  5. #5
    Join Date
    Nov 2005
    Posts
    18
    Plugin Contributions
    0

    Default 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 www.envii.eu and check the news side box (and click 'more').

    Thanks.

    Callan.

  6. #6
    Join Date
    Aug 2007
    Location
    Tampa FL.
    Posts
    142
    Plugin Contributions
    0

    Default Re: Double url's when clicking links

    ok you need to remove this from the link
    http://www.envii.eu/index.php?main_page=
    the link should be this

    index.php?main_page=news

  7. #7
    Join Date
    Nov 2005
    Posts
    18
    Plugin Contributions
    0

    Default 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... :-(

  8. #8
    Join Date
    Aug 2007
    Location
    Tampa FL.
    Posts
    142
    Plugin Contributions
    0

    Default 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

 

 

Similar Threads

  1. Replies: 6
    Last Post: 5 Jun 2013, 03:39 PM
  2. Page delay when clicking some links
    By alexismya in forum General Questions
    Replies: 6
    Last Post: 14 Jul 2011, 04:03 PM
  3. double url in my links
    By TALES75 in forum General Questions
    Replies: 11
    Last Post: 11 May 2010, 09:42 AM
  4. Double URL in Login Links
    By ttscanada in forum General Questions
    Replies: 6
    Last Post: 5 Jun 2009, 01:10 AM
  5. Links Have Double URL
    By AdamB in forum General Questions
    Replies: 5
    Last Post: 16 Mar 2009, 12:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR