WordPress core does not allow / in the slug.
If that is the case then Yoast needs to fix their pug-in to match the slug in WordPress so the right permalink is displayed on the search engines
Our plugin utilizes the WordPress slug.
Please elaborate on the issue you’re experiencing including as much detail as possible such as a link to the site in question, the expected outcome, any errors you received, steps to recreate the issue, and, if possible, screenshots.
using my example in my first post of your-domain.com/products/name-of-product the slug preview in in the yoast seo never matches the permalink of the page. The page I am doing the SEO on is at the name-of-product level
examples
correct permalink of page: your-domain.com/products/name-of-product
Yoast SEO Slug: name-of-product
Yoast SEO Slug preview: your-domain.com/name-of-product
permalink: your-domain.com/products/name-of-product
Before save
Yoast SEO Slug: products/name-of-product
Yoast SEO Slug preview: your-domain.com/products/name-of-product
permalink: your-domain.com/products/products/name-of-product
After save
Yoast SEO Slug: productsname-of-product
Yoast SEO Slug preview: your-domain.com/productsname-of-product
permalink: your-domain.com/products/productsname-of-product
Try it out yourself and you will see the Yoast SEO preview for the slug will never match the permalink of the page
I tested this using posts and pages but the slug matches the permalink each time. However, I located an open bug report that confirms this doesn’t happen correctly for all situations, for example nested pages or for some plugins like WooCommerce.
If you would like to follow the progress of the report, you can do that here: https://github.com/Yoast/wordpress-seo/issues/3514
Yes that is the issue I was talking about with the nested pages, I could not find the word for it in my post to explain it better
Hi, I have the same problem here on my website…
Do you have any solution for the moment ? We have to do all post URL manually?
Thanks in advance!
Hello, I have the same problem with my custom post type and Yoast SEO plugin. When I clicks on Yoast title field 1 my slug 2 immediately changes from “bla-bla” to “postype/postparent/bla-bla” in slug field on post edit screen.

@stepasyuk If you have a similar issue, please open a new request. That way it’s easier to track issues and provide assistance. Thanks!