Streaming live at 10am (PST)

Pages wont load and redirects to Null

Hi,
So I am having trouble with my website. This morning everything was working fine, but now my pages wont load and redirects me directly to my null page when I’m using my pc. However, it works as expected on mobile.

It also works as expected on the preview in designer, but then doesnt work for some reason when published.

Any help would be much appreciated!

Kind Regards
Karl

Here is my public share link: https://laurmedia.webflow.io/
Heres my read only link: https://preview.webflow.com/preview/laurmedia?utm_medium=preview_link&utm_source=dashboard&utm_content=laurmedia&preview=1f6c63f01363243f7e2de2334ad92be4&mode=preview

Hi there! Sorry you’re having issues. The reason why the pages are going to null is because of the custom snippet you have in the footer in the Project Settings. It can’t find the href because the target element is a div.

Try replacing it with this code:

$('.nav-item-text-full').click(function (e) {
    e.preventDefault();
  	
    var goTo = $(this).closest('a').attr("href");
    setTimeout(function(){
         location.href = goTo
    },1000);       
});
1 Like

Awesome, Thanks for the swift response, that fixed it!

Really appreciate the help!

2 Likes

Glad to help! Thanks for using Webflow!