You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Imagine you have structure and your url for that structure is {slug}. Typical url for my structure, if my slug is: contact-bojan would be something like: https://myawesomecraftsite.com/contact-bojan.
Now if I want to add for this specific page slug like this: https://myawesomecraftsite.com/contact/contact-bojan, I needed to change slugWordSeparator to "/", and then it allowed me to save. Otherwise, it always replaces "/" with "-" by default.
It gets saved, you open the page it works. But on backend in Entries, you cannot access anymore to that page because admin url of that page is broken.
Example:
This is proper edit URL: /admin/entries/publicPages/1654-contact-bojan
But in admin panel, when I press on my entry, url is something like this: /admin/entries/publicPages/1654-contact/contact-bojan - and ofc opens up [HTTP 404 – Not Found].
If you press CTRL ALT SAVE instead of normal save, it instantly throws error message.
I think its happening because that slugWordSeparator should affect only frontend, but for some reason it affects backend as well.
Steps to reproduce
Change slugWordSeparator to "/" in General options
Create structure and set for URL {slug}
Add in entry slug word/another-word
Save it
Try to open that page from admin panel - it doesnt work. Even CTRL ALT SAVE gives you an error.
You can manually figure out edit url - which is same as before the save with new slug.
Expected behavior
Backend should properly keep old edit URL and not add according to slug in admin panel / or it should work when slug changes in backend as well.
Actual behavior
Entries URLs are not correct once these steps are done.
Craft CMS version
4.4.1
PHP version
8.1
Operating system and version
Ubuntu 20
Database type and version
MYSQL
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered:
What happened?
Description
Imagine you have structure and your url for that structure is
{slug}
. Typical url for my structure, if my slug is: contact-bojan would be something like:https://myawesomecraftsite.com/contact-bojan.
Now if I want to add for this specific page slug like this:
https://myawesomecraftsite.com/contact/contact-bojan, I needed to change
slugWordSeparator
to "/", and then it allowed me to save. Otherwise, it always replaces "/" with "-" by default.It gets saved, you open the page it works. But on backend in Entries, you cannot access anymore to that page because admin url of that page is broken.
Example:
This is proper edit URL:
/admin/entries/publicPages/1654-contact-bojan
But in admin panel, when I press on my entry, url is something like this:
/admin/entries/publicPages/1654-contact/contact-bojan
- and ofc opens up [HTTP 404 – Not Found].If you press CTRL ALT SAVE instead of normal save, it instantly throws error message.
I think its happening because that slugWordSeparator should affect only frontend, but for some reason it affects backend as well.
Steps to reproduce
slugWordSeparator
to "/" in General options{slug}
word/another-word
Expected behavior
Backend should properly keep old edit URL and not add according to slug in admin panel / or it should work when slug changes in backend as well.
Actual behavior
Entries URLs are not correct once these steps are done.
Craft CMS version
4.4.1
PHP version
8.1
Operating system and version
Ubuntu 20
Database type and version
MYSQL
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: