Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to using a slug field for News items URLs. #2144

Merged
merged 2 commits into from
Dec 6, 2023
Merged

Conversation

tompollard
Copy link
Member

As discussed in #2143, we currently use sequential IDs for the path of news items. For example:

This pull request switches from IDs to a unique, user-defined slug. All existing news items will be assigned their id as the slug, so paths will remain the same. For example https://physionet.org/news/post/1 will continue to resolve after the migration.

In future work, we might want to:

  • Automatically suggest a slug, based on the title of the news item.
  • Improve slug validation.

@tompollard tompollard force-pushed the tp/news_slug branch 2 times, most recently from a2a4f64 to c173f66 Compare November 29, 2023 21:33
All existing news items will be assigned their id as the slug, so paths will remain the same.
@bemoody bemoody merged commit bcc014e into dev Dec 6, 2023
11 checks passed
@bemoody bemoody deleted the tp/news_slug branch December 6, 2023 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants