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
In this use case, I'm using a "page" content type, and the site's Home page is the only page to have an empty slug. When previewing other pages with slugs set, everything works as expected, but when trying to preview the homepage, the created URL path is /en/{slug} (or /en/%7Bslug%7D after the browser's URL encoding).
Maybe the default for an empty variable such as the slug should be to interpolate the query URL with an empty string?
Followup: this seems to happen when a default value is not configured for a field, and Strapi has the value set to null. Specifying an empty string as the default value for slug here is a workaround for the issue.
In this use case, I'm using a "page" content type, and the site's Home page is the only page to have an empty slug. When previewing other pages with slugs set, everything works as expected, but when trying to preview the homepage, the created URL path is
/en/{slug}
(or/en/%7Bslug%7D
after the browser's URL encoding).Maybe the default for an empty variable such as the slug should be to interpolate the query URL with an empty string?
Here is my config:
The text was updated successfully, but these errors were encountered: