• Hi you beautiful people!

    So the problem is simple but the solution is frustrating me.Does anyone know how to fix this?

    I have this site (link below) which loads perfectly fine. We created some google ads and which when clicked send the user to the homepage but it never loads. I’ve since figured out that if the homepage has ANY query string appendage (one like google ads applies for tracking) like this [ redundant link removed ] the site never loads for the user.

    This ONLY happens on the homepage, any other page on the website with a query string loads perfectly fine. Can anyone help me understand what the problem here may be?

    Things I’ve tried, with no success:
    Deactivating ALL plugins
    Purging Cache
    Turning CDN off

    Any help would be so appreciated here. THANK YOU!

    • This topic was modified 4 years, 5 months ago by Yui. Reason: redundant link(s) deleted
    • This topic was modified 4 years, 5 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is because of the second line below, which is found in your /app/themes/almero-sturents/dist/js/app.js file on line 426:

        var home = void 0;
        window.location.origin + '/' === window.location.href ? home = true : home = false;
        if (home === true) {
          setTimeout(function () {
            $("#app.animation").addClass('reveal');
            $(".al-loader").addClass('hide');
          }, 500);
        }

    You’re explicitly comparing the URL including any query string (the part from ? to the end) which will return false and so home will also be false, thereby never revealing the site.

    Thread Starter jsnmrk

    (@jsnmrk)

    Hi Daniel. Thanks for the reply. What would you suggest to resolve this issue? Which part of this JS would need to be changed or should I just comment it out completely? To me it looks like that JS is just for the icon loading animation – that displays while the site loads in the background. I’d like to keep it but still have the query string work, if possible – if not though would just commenting out this line of JS code be the solution?

    Appreciate your input already so much. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Website homepage not loading if has query string, WHY?’ is closed to new replies.