Fix Ci Catalog Resource relative links in README
What does this MR do and why?
When you view a Ci Catalog Resource details page, relative links are broken and result in a 404 page error. This MR fixes the context of the field that generates the README html so that the links are relative to the project root path.
Resolves #421926 (closed)
How to reproduce
- Create a Catalog Resource project.
- In the
README.md
file of that resource, add the following link:
[Test link](README.md)
- Now go to the Catalog Resources page at
<GROUP>/<PROJECT>/-/ci/catalog/resources/
.
- Click into the resource that you created in Step 1. Now you will see the details page with its
README.md
contents. ClickTest link
. Observe that you are directed to a 404 error page.
Details page | Bug |
---|---|
How to set up and validate locally
- Checkout this branch.
- Follow Steps 1-4 in the previous section. Observe that now you get redirected to the correct
README.md
path.
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 Leaminn Ma