Allow to setup Documentation pages URL for help pages redirects
What does this MR do and why?
- Contributes to #32328 (closed)
- Feature flag: #255328 (comment 692749628)
This feature was enabled
Changes
- Show a configuration option in Admin Area to set Documentation pages URL
- Redirect requests to documentation pages to the host defined by configuration option
Screenshots or screen recordings
How to set up and validate locally
- Open http://localhost:3000/help/administration/index.md
- Verify that documentation is rendered locally
- Go to Admin Area -> Settings -> Preferences -> Sign-in and Help page (section)
- Fill
Documentation pages URL
with valuehttps://docs.gitlab.com/
- Save the form
- Open http://localhost:3000/help/administration/index.md
- Verify that you were redirected to https://docs.gitlab.com/ee/administration/index.html
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Vasilii Iakliushin