Netlify-cms: Update folder-collection file name on title change

Created on 26 Mar 2018  路  3Comments  路  Source: netlify/netlify-cms

As the slug is generated from the title, it would be more accurate to update the file name when the title is changed, and so avoid non relevant name for the file.

No idea on how to do it thought...

stale

Most helpful comment

Not necessarily - we use the title to generate the slug because we need some way of creating a meaningful name, but changing the file name after publishing has big consequences, like breaking any existing links if a redirect isn't created.

The current thought is that this will be more or less fixed under #445, which will make the slug visible and editable, but afterward perhaps that behavior could be extended with configurable automatic redirect creation. For example, this would mean a new entry being created in the redirects file for sites hosted on Netlify.

All 3 comments

Not necessarily - we use the title to generate the slug because we need some way of creating a meaningful name, but changing the file name after publishing has big consequences, like breaking any existing links if a redirect isn't created.

The current thought is that this will be more or less fixed under #445, which will make the slug visible and editable, but afterward perhaps that behavior could be extended with configurable automatic redirect creation. For example, this would mean a new entry being created in the redirects file for sites hosted on Netlify.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Closing in favour of https://github.com/netlify/netlify-cms/issues/1576 due to the detailed discussion there.

Was this page helpful?
0 / 5 - 0 ratings