Announcement

Collapse
No announcement yet.

Problem with URL linking to an 'a element'

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problem with URL linking to an 'a element'

    The following URL works perfectly on every page of the site except the Home (index) page.

    Click <a href="info.html#q1"><b>HERE</b></a> for full details and any exclusions

    On the home page of the site, the link resolves as

    http://www.morethanmowers.co.uk/info.html#q1

    instead of http://www.morethanmowers.co.uk/acatalog/info.html#q1

    On all other pages (catalog pages as well as ordinary html pages) it resolves correctly as http://www.morethanmowers.co.uk/acatalog/info.html#q1

    However ..... if I remove the the # and name value, the link resolves correctly on the home page as

    http://www.morethanmowers.co.uk/acatalog/info.html

    On the site, the link can be found in the right hand column under Delivery Info

    as "Click HERE for full details and any exclusions."

    Is there any way of fixing this please? Many thanks if anyone can help

    Mike de Malpas

    #2
    The anchor is confusing Actinic's parsing of the pages. Either lose the #q1 or use the full http://www.morethanmowers.co.uk/acatalog/info.html#q1 URL.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Changing
      <a href="info.html#q1">
      to
      <a href="http://www.morethanmowers.co.uk/acatalog/info.html#q1">

      might fix the problem.
      Darren Guppy
      Golf Tee Warehouse
      Golf Tees and Golf Accessories.

      Comment


        #4
        Originally posted by demalpas View Post
        The following URL works perfectly on every page of the site except the Home (index) page.

        Click <a href="info.html#q1"><b>HERE</b></a> for full details and any exclusions

        However ..... if I remove the the # and name value, the link resolves correctly on the home page as

        http://www.morethanmowers.co.uk/acatalog/info.html
        This seems to be another example of actinic incorrectly parsing URL's is this a bug in Actinic that should be reported or has it already been reported? The same occurs with js files if passed a parameter, and they then fail to work correctly in preview mode as well.

        Malcolm

        SellerDeck Accredited Partner,
        SellerDeck 2016 Extensions, and
        Custom Packages

        Comment


          #5
          Problem with URL linking to an 'a element'

          Thanks to all of you for your responses. Clearly putting in the full URL works - at least on the live site, but requires a different URL on the test site. This is not a good resolution in my opinion but may be all that is available with the Actinic code as it exists.

          As some one has indicated, there appears to be a parsing problem with Actinic that the developers need to fix.

          Thanks again for your help.

          Mike de Malpas

          Comment


            #6
            Don't hard code the full URL, use the actinic URL variable, it will add in what you have in network settings and therefore be dynamic.

            Comment


              #7
              Lee is spot on. Use:
              Code:
              Click <a href="<actinic:variable name="InfoURL" />#q1"><b>HERE</b></a> for full details and any exclusions
              Another route, useful if you were trying to link to a specific page that doesn't have an Actinic variable available, would be:
              Code:
              <a href="page.html" onclick="this.href=this.href+'#anc';">Click me</a>
              However search engines would only see the link to the page top, not the specific anchored item.
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment

              Working...
              X