• Resolved the_enn

    (@the_enn)


    I noticed a strange issue in Firefox, I haven’t noticed before and it’s not happening in Chrome or Safari.

    The site is redirecting pages, sometimes in an infinite loop, but only in Firefox. This page, has the URL redirecting to the Slider Pro plugin directory over and over in the same tab and the URL keeps concatenating on itself. If I disable the plugin (which hasn’t been updated in the last several months), the problem goes away, though of course the slider images are gone.

    Other pages, were redirecting to image .png files in FF only. This issue I solved, but doesn’t make any sense. A page that had 5 image tags with relative URLs was redirecting automatically to the image .png files in the browser randomly. Setting the absolute path fixed the issue, but I have no clue why. When I changed the src parm below, which was where the code was redirecting, to be prefixed with ‘https://www.relnei.org’ the problem went away.

    <a href="https://www.relnei.org/publications/nh-teacher-evaluation-system-study.html" >
      <img class="img-responsive storydocs" src="/wp-content/uploads/2016/08/the_cover.png"></a>  

    The other browsers are fine. Anyone have a clue on this one?

    • This topic was modified 8 years, 3 months ago by the_enn.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    FWIW, I’m not experiencing any redirects in my FF. It sounds like there’s a problem with the slider script where it’s selecting the wrong element on the page due to some quirk of the FF JavaScript engine. Any clues in the browser console?

    In any case, relative references are generally a bad idea in the WP environment because a page’s URL structure can vary by context, throwing of any relative references. The only relative reference that’s safe is one to a file in the same folder.

    Thread Starter the_enn

    (@the_enn)

    Thanks for your insight, bcworkz. It sounds like I’m the only one having this issue out of the few others I’ve checked with, but it concerns me that this could be a latent problem waiting to happen for other users. Cleared my cache and cookies, updated to the most recent FF version, closed, restarted, still have the issue.

    Unfortunately, no js errors in the Console. It’s very strange to have functionality instead of style differences in just one browser. Haven’t seen this particular issue before.

    Good to know on the relative references going forward.

    • This reply was modified 8 years, 3 months ago by the_enn.
    Thread Starter the_enn

    (@the_enn)

    So after eliminating my add-ons in FF, the problem went away. I’m not sure yet what add-on it was, but it was definitely an isolated issue.

    Thanks again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Firefox redirects pages with relative img paths?’ is closed to new replies.