I have implemented a wildcard item in my project to handle two dynamic ids. The url is like:


It works fine on first load. But if I switch language using our (custom) language switcher, the url becomes this:


And it shows item not found. Please let me know if I am missing something.

  • 2
    It this language switcher from SXA or is it your custom language switcher? What is its code? Sep 3 '19 at 9:18
  • No, Its a custom language switcher. Will post code in sometime. Sep 3 '19 at 9:23

When we see the code we'll be sure, but I'm rather convinced the problem is that your custom language switcher is asking the url from the page in the other languages through the Sitecore API - which is a normal procedure. But if Sitecore is not aware of any logic to create the url you want for the wildcard, Sitecore will generate it with the ,-w-, sections you are seeing.

To fix this, you need to make sure that your code knows how to generate the correct urls. You might consider a custom link provider...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.