Page preview not working with qtranslate slug
-
I love qtranslate slug! But when it’s activated, page preview does not work anymore: when I am editing a page and click on “preview”, a new page opens with the excepted URL (https://mydomain.tld/en/mypageslug?preview_id=XXXX&preview_nonce=YYYYY&_thumbnail_id=ZZZZ&preview=true) but somehow what is displayed is the published page without previewing the changes I’ve made.
This problem does not occur with posts, where the preview URL is of the type https://mydomain.ltd/en/?p=NNNN&preview_id=XXXX&preview_nonce=YYYYY&post_format=standard&_thumbnail_id=ZZZZ&preview=true and does not use the permalink (instead it uses ?p=NNNN).
As a matter of fact, if I manually edit the page preview URL to replace the slug by page_id=NNN (https://mydomain.tld/en/?page_id=NNNN&preview_id=XXXX&preview_nonce=YYYYY&_thumbnail_id=ZZZZ&preview=true) the preview is correctly displayed.
Now the question is: why does the post preview URL use the post ID, while the page preview URL doesn’t? When the plugin is deactivated, the post preview URL uses the slug, so I think it is the plugin that somehow tells WordPress to use the post ID for preview, which is great. The plugin just needs to do the same with pages. Hopefully this is a minor change in the plugin and this problem will be very solved very quickly! ^^
Thank you again for this great plugin!
- The topic ‘Page preview not working with qtranslate slug’ is closed to new replies.