Website URLs not updating when page changes

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.