Replies: 1 comment
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I have created a Pages site with Markdown files on GitLab using their Pages feature.
My project site exists within a Project Group (with other relevant projects)
Within my Repo, When I define a relative path that links an image (or another Markdown file), the path should be:
(/[assets folder]/[images folder]/image-file.png)
.That same path/link on my deployed Gitlab pages site should be:gitlab.[My Company].io/My Repo Group/My Repo/assets folder/image folder/image-file.png
Instead this is what's happening:
Instead, Gitlab is taking my file path —
(/[assets folder]/[images folder]/image-file.png)
— and calling this URL:gitlab.[My Company].io/assets folder/image folder/image-file.png
...GitLab is skipping my Project Group and Repo in the pathway and missing the file, which throws me a 404 (and doesn't embed the image).
I'm at a loss here. Any suggesting to help GitLab call the correct file path? Hoping I'm making a simple mistake.
_config.yml info:
url:
http://gitlab.[My Company].io/My Repo Group/My Repo
baseurl:
/My Repo Group/My Repo
I have tried many variation of pathways to embed images (and link other files). I have this problem when linking Markdown files as well. The path skips my Project Group and Project.
Docs Folder Example (Linking/reference other markdown files within a markdown file)
Within my repo — The path that should work is:
(/[docs folder]/[docs subfolder]/file.md)
.What my deployed site links to based on that path:
gitlab.[My Company].io/[docs folder]/[docs subfolder]/file.md
It skips my repo group and repo.
The relative path that works, but NOT FOR images is:
(../[docs subfolder]/file.md)
Beta Was this translation helpful? Give feedback.
All reactions