Website URLs not updating when page changes

Hello everyone!

I have been running into an issue lately with my live site (domain is prycd.com)..) Occasionally, when I navigate between different pages, the URL in my browser will remain stuck at one of the previous pages. No matter which page I go to after it gets stuck, it will always show that original page’s url. When I refresh, the stuck page url is what loads (obviously).

An example:

Start on prycd.com/about
Click a link in the menu to go to Plans & Pricing
Plans & Pricing page will show
URL will still show prycd.com/about

The other thing I have been noticing is that some of my buttons with links set through the editor (UI, not code) will stop working entirely and become dead. I have to refresh the page or use the browser back button to get it to work again. I believe this is related to the above issue, but I am not entirely sure!

Please let me know if you have any suggestions!

Ryan

Still happening. Users are having to refresh the page when the links die, and then it’s taking them to a completely different page because the browser is reloading the wrong url.

Any help would be appreciated!

I suspect it has something to do with your code - but there’s a lot of code to sift through. However, a couple of observations…

On the Plans and Pricing page, you have an error flagged as you are not properly using the .then() function of the Promise:

It should be something like this:

$w("#costDiffText").show()
  .then( ( ) => {
    $w("#costDiffText").expand()
} );

Although I really don’t understand the usage of showing the costDiffText element and then expanding it. Wouldn’t just expand be sufficient?

Further down in the code, another error is flagged where you are setting session storage with a boolean. The setItem function requires a string parameter.

You should be setting the item value as a string, something like this:

session.setItem("needs_referral", "true");

On the Our Story page, you have the same issue with the .then() function as I described above:

You will need to carefully review your code and fix any errors before attempting to identify the URL problem that you are having. The problem could very well be the result of the coding errors.

Thank you for the response! I can definitely fix those errors. The show/expand is just a bad habit and then copy pasting a lot. I can definitely fix that one.

I can also fix the setItem being a string, that’s an easy change.

One note, I don’t see the error messages you do. There were some updates to the editor that needed to be rolled back on our site because it was causing a lot of crashes. I am wondering if that has been fixed and if we can get those changes? It would be helpful to have those intellisense additions!

I will make the changes and then see if that fixes the issue. If not I can reach back out here! Thanks again Yisrael.

Hey Yisrael,

So I spent a good amount of time cleaning up the issues you mentioned. I also waited a couple of days to ensure I wasn’t seeing leftover remnants. Still seeing the url get stuck. Here were my steps to reproduce today:

  1. Started at prycd.com/faq

  2. Clicked the Plans & Pricing Tab

  3. Url still showed prycd.com/fa q

  4. Pricing Plans page was showing

It’s not specific to any page, this just happens to be the sequence where I noticed it.

Also, not sure if this is related, but I was on the homepage (prycd.com) and clicked the Search Land tab in the menu. Nothing happened. I refreshed the page and nothing happened. I took a look at the browser console and saw the following:

Have not seen that before. Had to close the browser and restart to get anything to work.

Please let me know if you need more info from me! I’m sure it’s something I am doing wrong but I am struggling to figure it out. Your help is always greatly appreciated!

@admin30811 It seems that the issue has been resolved.

@certified-code Thank you for reaching out! Sorry for the late reply, I didn’t get a notification on this. I actually just saw this issue happen last night and again this afternoon when I was on the site.

No particular page causes it to happen, but in this case I was on the Plans & Pricing page and clicked the top left logo (our PRYCD logo) to go to the Home page. The home page loaded but the url still showed prycd.com/plans-pricing

I also had the other scenario happen. I was sitting on prycd.com/parcel-analysis-results and when I went to click List Upload in the nav bar, nothing happened. No requests made, just a dead button. I had to refresh the page before any of the links worked again.

The pattern seems to be that it happens when clicking on links that are set via the editor GUI link creation panel. That’s about the only thing I have seen in common here.

I apologize for the lack of code/examples, I am not sure exactly how to display the issue. Please let me know if you need anything from me!

Ryan

Hey @Yisreal. Our site was just updated to the new Thunderbolt rollout today. We were removed from that update previously due to some rendering issues. When the site was updated, it actually made this problem much worse. I am wondering if you’re able to actually reproduce it now with the new stuff.

This is now happening. Before it was the browser url getting stuck. Now the Nav bar highlighting is stuck with it. Notice the Plans & Pricing page/url is showing, but I am actually on the Price Land page.

To create the issue, all I did was click the different nav bar items until it happened. Only takes about 4 or 5 different page clicks to make it break.

Let me know if you need more info. I appreciate everything you’ve helped me with so far!

Ryan

@admin30811 Hey Ryan, Just wanted you to know that I’m looking at this. I’m unable to reproduce the problem, but I haven’t given up yet. I’ll keep mucking around and see what I can do.

@Yisreal Thank you I really appreciate you looking into it. I can do a screen record to show what I am doing and maybe try to capture the console/network logs if that helps. Just let me know!

Also I want to add that the links that are failing are not just ones I created. I am getting reports of the Bookings Checkout links not doing anything, as well as the Pricing Plans plugin links to purchase a plan.

Ryan

@Yisreal. I believe I solved it. It was nothing to do with Wix. We were using the custom code section with a plugin called “Clarity” to track user engagement, and that seems to have been disrupting the click events and routing.

When I removed that plugin, I could no longer reproduce the issue.

Hopefully I didn’t waste too much of your time. Thank you again for looking into everything!

Ryan

Glad you got it worked out - amazing! And don’t worry about wasting my time - I waste enough of it myself.

i have the same problem, how did you take this plugin off please?

I am having this problem.
I gave the url to a business so they can give it to customers.
I have since updated the page.
The business is still seeing the old version of the page.

How can I fix this problem?