URL ended with "/undefined" in SERP
I found that some of my company website pages URL is end with "/undefined" in SERP. for example, https://www.exampledomain.com/undefined.
The undefined URL is redirecting with a 301 to the right one so it’s not generating a 404.
What should I do to make the actual URL display in SERP instead of "/undefined"?
Can you post a serp screenshot with the undefined slug? Can not find such case myself.