Why does my icon boxes go to /undefined when the link is correct?

On the website if I click on a icon box with a link it sends me to a url that ends with /undefined. It's always the "correct" url but with the added /undefined at the end. It only happens when the page is actively showing its loading. /undefined links show the 404 page. For example the button should go to /about-us. Instead, when I click on it, it goes to /about-us/undefined How do I fix this? I checked the links of the buttons, each one is correct. But I set the links again just to be safe. I've updated my elementor. None of my other plugins need an update.

Comment (1)

Jese Leos

September 18, 2024

Verified user

If this happened during loading time it means that link will be added using the JavaScript and it will take some time in execution, before completing the execution of this the variable may be undefined and once it's completed we get it's value.

You’ll be in good company