Maybe it’s not clear on my post. This is exactly what I have. But the problem I am facing is the behavior of the wixLocation library. The wixLocation.url always return the same value (“error404”) for any wrong URL my customer may type.
In other words, there is no way for me to know what did my customers typed wrongly because the wixLocation.url always return the same “error404” string instead of the actual URL the customer typed.