Consider adding left nav test for forward slash (/)
Problem
Currently, our left nav tests don't fail if the value for a doc url starts with a slash (/
). For example: doc_url: '/ee/tutorials/boards_for_teams/'.
This was noticed in the following MRs:
The only way to test this is to check the preview in review app (link will be broken in preview).
This is likely an easy mistake to make, as URLs are often copied directly from a browser and the MR author may inadvertently include the slash before /ee
.
Proposed solution
Add a test to https://gitlab.com/gitlab-org/gitlab-docs/-/blob/main/scripts/check-navigation.sh to check for the slash.