Closed vandres closed 11 months ago
A token is needed if any of these are true:
Any of those the case here?
No, not really. There might be one thing. This entry type is not allowed/used on the primary site.
Hm, just tested that same scenario and the “View” button is getting hyperlinked as expected:
Your entry’s Post Date is 10.05.23
. What formatting locale is that using? Does that mean October 5, 2023
, or May 10, 2023
?
It's the German format for 10. of May.
Changed it to a date in 2022, just to be sure. No change
@brandonkelly Back to my first theory. I enabled the Blog entry type now for the primary site. Suddenly the preview links are "correct"
Hi there, I've run into the same issue on a project that we're preparing to upgrade to Craft 4. Both 3.9.4 and 4.5.6 seem to be affected by this issue.
After saving and publishing an entry in a section that is only available on a specific site (other than the main site), the "View" link always generates an expiring token link. Enabling that section on the main site seems to fix this, it now shows the correct live URL.
@vandres thank you for sharing this workaround!
@i-just figured out how to reproduce, and it’s now fixed for the next release via #13822 🎉
Craft 4.5.7 is out now with the fix for this. Thanks again for reporting!
What happened?
Description
I think, this is a weird one. One of our editors complained, that some preview links he can just copy and paste. Others have a token and he has to manually edit them.
This is a CMS page, which works "as expected"
This is a Blog post, which always adds a token
Is there any way to configure this? The CMS page entry type was create with an older version of Craft 4.0, if I recall correctly. The Blog post entry type was created with Craft 4.4 or 4.5
Steps to reproduce
Expected behavior
Links don't add a token, if there is no change
Actual behavior
Links always have a preview token.
Craft CMS version
4.5.5
PHP version
8.2
Operating system and version
CentOS
Database type and version
MariaDB 10.5
Image driver and version
-
Installed plugins and versions