Non-component 'Edit this page' links return 404
Good behavior
- Go to a component page, like https://design.gitlab.com/components/data-table
- Click
Edit this page
- See how beautifully the markdown file renders!
This seems to be only for component files, so this line is doing great things: https://gitlab.com/gitlab-org/gitlab-services/design.gitlab.com/blob/master/pages/components/_slug.vue#L27
Bad behavior
- Go to an alternate page, like https://design.gitlab.com/accessibility/vpat/
- Click
Edit this page
- See how the url contains an extra
/
before the.md
is appended to the end. This file doesn't exist.
This line probably needs an update to remove the trailing /
: https://gitlab.com/gitlab-org/gitlab-services/design.gitlab.com/blob/master/pages/_slug/_slug.vue#L17