I am having further problems with my migration to localhost. When I click on an internal link I get this as the link:
http://localhost/choo/cgi-bin/ua/localhost/choo/cgi-bin/ua/main.pl (The link is repeating itself somehow.)

The code this is coming from is this:

<A HREF="<!--GLOBAL::script_dir_url-->/main.pl">Main Page</a> | <A HRE +F="<!--GLOBAL::script_dir_url-->/browse.pl">Browse</a> |<!-- <A HREF= +"<!--GLOBAL::script_dir_url-->/newitem.pl">Sell</a> |--> <!--<A HREF= +"<!--GLOBAL::script_dir_url-->/gallery.pl">Gallery</a> |-->

I thought possibly it had something to do with scriptalias in apache (2.4) or addhandler (.pl) But I disabled those and it continues to double up on the link. I am not familiar with the global script so I'm not sure if possibly that is causing this or something else.

This is happening in windows 10 environment using the latest Strawberry edition. Any ideas on a fix?

Thanks for any help.


In reply to localhost url repeating on internal links by traincity

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.