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 Jekyll and in WordPress I use redirects that can be defined from certain pages and posts. In other words, the metadata defining the redirect is on the page. Jekyll is a closer analog to Statamic, so I'll go with that scenario. Let's say I have a page at the root of my site with the slug 'silly' and the filename 'silly.md', this file includes this YAML front matter:
This front matter results in redirects being created from '/Stuff/HomePage/" to '/silly', from '/Stuff/Stuff' to '/silly', and from '/Stuff/' to '/silly'.
I can't find a similar ability in statamic-redirect to define redirects from the YAML front matter (or custom "fields", I suppose, in Statamic terms). Am I missing something? Would you consider adding a feature like this to statamic-redirect?
I imagine in Statamic this might work by allowing the user to choose a field slug that statamic-redirect would regularly review for new redirects that get automatically generated (sort of like the auto-generated page-slug-change redirects).
The text was updated successfully, but these errors were encountered:
efc
changed the title
Redirect From?
Request redirect-from
Oct 26, 2024
efc
changed the title
Request redirect-from
Request redirect_from
Oct 26, 2024
In Jekyll and in WordPress I use redirects that can be defined from certain pages and posts. In other words, the metadata defining the redirect is on the page. Jekyll is a closer analog to Statamic, so I'll go with that scenario. Let's say I have a page at the root of my site with the slug 'silly' and the filename 'silly.md', this file includes this YAML front matter:
This front matter results in redirects being created from '/Stuff/HomePage/" to '/silly', from '/Stuff/Stuff' to '/silly', and from '/Stuff/' to '/silly'.
I can't find a similar ability in statamic-redirect to define redirects from the YAML front matter (or custom "fields", I suppose, in Statamic terms). Am I missing something? Would you consider adding a feature like this to statamic-redirect?
I imagine in Statamic this might work by allowing the user to choose a field slug that statamic-redirect would regularly review for new redirects that get automatically generated (sort of like the auto-generated page-slug-change redirects).
The text was updated successfully, but these errors were encountered: