Separate wiki page title and path fields
What does this MR do and why?
Related to Wiki URL changes when title changes (#30758 - closed)
By separting the wiki title and path fields, we allow people to change the title of a wiki page without changing the path. However people can still change the path of the wiki page if they choose to do so.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Scenario | Description | Screenshot |
---|---|---|
Creating a new page |
|
|
Editing a page |
|
|
Changing the URL of a page |
When you change the path of a page, a redirect is automatically set up from the old path to the new path. This is tracked in #257892 (closed) and was delivered in !150727 (merged) and !153289 (merged). |
Notes:
- The title saved in front matter is visible on the page itself. It is not visible in the sidebar, list of all pages and in wiki pages autocomplete dropdown. This will be done in a follow-up.
How to set up and validate locally
-
Enable feature flags. Open
rails c
and run:Feature.enable(:wiki_front_matter) Feature.enable(:wiki_front_matter_title)
-
Edit a page. See description in the screenshot section for further steps.