• Resolved David Bee

    (@davidbawiec)


    The Preload Links feature is great at getting the website to generate cache files faster. However, there’s a bug in the code when dealing with relative URLs, which throws a console error:

    Uncaught TypeError: Failed to construct ‘URL’: Invalid URL
    at breeze-prefetch-links.min.js?ver=2.0.29:3:521

    So if there’s a link on the page that goes to /help-center/ it would throw the above error and render the page

    As mentioned in this StackOverflow question, the URL constructor requires an absolute URL to work with. So e.target.attributes.href.value should be replaced with e.target.href to retrieve the actual absolute URL rather than the relative URL that’s in the HTML.

    Hope this helps fix the bug!

    David

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author adeelkhan

    (@adeelkhan)

    Thanks for highlight the point. We will provide solution of it in our upcoming releases.

    Plugin Author adeelkhan

    (@adeelkhan)

    The issue has been fixed in 2.0.32.

    Please update.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug Report: Preload Links’ is closed to new replies.