Support » Plugin: Permalink Manager Lite » yoast’s slug with Permalink Manager Lite

  • Resolved bomalo

    (@bomalo)


    Hello,

    i have a page,
    it’s title is aaaa,
    and i se Permalink Manager Lite to set it’s permalink as my-domain/bbbb.html.

    but yoast’s default slug will show as aaaa instead of bbbb.html.
    is it normal ?

    thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Maciej Bis

    (@mbis)

    Hi @bomalo,

    yes, Yoast SEO uses a custom JS functions and I was not able to hook into the SEO metabox and filter the URL displayed inside.

    Yoast SEO metabox always displays the URL that is based on native slug (aaaa), but this applies only to that metabox. My plugin filters both canonical URL and sitemaps generated by Yoast SEO and everywhere else the correct permalinks is used.

    Best regards,
    Maciej

    Hello,

    im not sure if it is correct ?

    1. your snippet show the native slug even it is not the one correct url i used now (i had use other plugin to modify the url/permalink).
    2. yoast will read sitemap to get the real slug and sent it to google’s snippet.

    thanks

    Plugin Author Maciej Bis

    (@mbis)

    Hi again @bomalo,

    Ad 1. To make the long story short, my plugin does not rely on the native slug & rewrite rules. It shows the native slug, because by default the slug is also added to the end of custom permalinks. It is not required, as you can fully customize the URL. Ergo, the custom permalinks do not have to contain the native slug. In Permalink Manager the native slugs can be removed from the custom permalinks and still my plugin will be able to detect them.

    There are 3rd party plugins & other custom solutions that are using the native slugs, that is why my plugin does not change the native slugs to avoid the compatibility issues. Instead it stores & detect the custom permalinks separately. The main advantage of this is that you can easily remove my plugin and then all the native URLs will be restored (because the native slugs are not changed).

    Please note that the post slug is only a part of URL and both slug & rest of URL can be edited with my plugin. But, by editing the custom permalinks in my plugin you do not automatically change the native slug.

    Ad 2. In the sitemaps Yoast SEO does not parse the slug directly. For sitemap entries it uses the full permalinks that can be filtered by 3rd party plugins (including mine). You can simply verify how it works. If you change the permalink with my plugin, the changes will be applied to both meta tags (canonical URL) and URLs in the sitemap.

    The Yoast SEO metabox (in admin panel) shows the permalink based on the native slug, because there is no reliable way to change it and make it display the custom permalink set with Permalink Manager. Yet, the custom permalinks are displayed & work correctly elsewhere (including front-end).

    Best regards,
    Maciej

    • This reply was modified 1 month, 2 weeks ago by Maciej Bis.
    • This reply was modified 1 month, 2 weeks ago by Maciej Bis.

    Hello,

    thanks for all your explain,
    but im still a little confused.

    as my original sample,
    your metabox show the slug as aaaa,
    and will google read/show it as my-domain/aaaa ? or my-domain/bbbb.html ?

    thanks

    Plugin Author Maciej Bis

    (@mbis)

    Hi @bomalo,

    I forgot to mention that the original URL (my-domain/aaaa) is not displayed/echoed anywhere in the front-end, so Google will not be able to index it. Google parses the URLs from canonical meta tag and sitemaps. As I explained above, both of them are filtered by my plugin and will use the new URL set with Permalink Manager (my-domain/bbbb.html).

    Best regards,
    Maciej

    Hello,

    but may i make a suggestion,
    about yuor metabox,
    it is possible to show both native slug(aaaa) and new url(my-domain/bbbb.html) togteher,
    i think it may more easy to understand well.

    thanks

    Plugin Author Maciej Bis

    (@mbis)

    You can show the native slug field in the URI editor by enabling it in Permalink Manager settings:
    https://permalinkmanager.pro/docs/faq/native-slug-in-wordpress-permalinks/#how-to-access-the-slug-editor-and-manually-change-the-slug

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.