I have an existing content type that's been using custom URLs instead of a Pathauto for sometime, however, I would like to start using one soon.

My is problem is that once I enable the pattern all exiting content URLs will inevitably change to follow the pattern when they are next updated. I'd like to avoid this behavior for SEO and keep my old URLs intact, and only apply the pattern for new content (while selectively opting old content into the pattern).

It looks like the PathautoWidget class is responsible for this behavior. It feels like on my own I could use hook_field_widget_info_alter() to extend and alter this as I see fit, but am wondering if this could be an issue for other sites as well, so creating an issue here.

Ideally the "Generate automatic URL alias" box is not checked when an existing custom alias already in place, allowing the URL to remain intact during content updates. The editor can later opt the content into following the pattern should they choose to.

Thanks!

Comments

dunklea created an issue. See original summary.

dunklea’s picture

Issue summary: View changes
dunklea’s picture

Issue summary: View changes