Skip to content

Fix:Broken External Footer Links due to relLangURL Filter - #555

Open
aniket866 wants to merge 1 commit into
microcks:masterfrom
aniket866:fixing/footer-links
Open

Fix:Broken External Footer Links due to relLangURL Filter#555
aniket866 wants to merge 1 commit into
microcks:masterfrom
aniket866:fixing/footer-links

Conversation

@aniket866

@aniket866 aniket866 commented Jul 31, 2026

Copy link
Copy Markdown

Closes #554

Description

The footer layout filters external absolute menu links using the relLangURL filter.

  • File Link: themes/microcks/layouts/partials/footer.html and (file:///c:/Users/Hp/microcks.io/themes/microcks/layouts/partials/footer.html#)
  • Code Snippet:
    <a href="{{ .URL | relLangURL }}" title="{{ .Name }}">{{ .Name }}</a>

Why It Breaks

The footer contains absolute external links, such as the Linux Foundation privacy policy URL: https://www.linuxfoundation.org/legal/privacy-policy. Passing this absolute URL into the relLangURL filter corrupts the URL into a malformed relative path prefix (e.g. /https:/www.linuxfoundation.org/legal/privacy-policy). Clicking this link causes a 404 error on the local host instead of opening the external web page.

How to Reproduce

  1. Build the website and scroll to the footer.
  2. Click on the "Privacy Policy" or "Terms & Conditions" links.
  3. Observe that the browser redirects to a broken 404 page on microcks.io rather than the external Linux Foundation website.

issue Flow

sequenceDiagram
    actor User as Site Visitor
    participant Site as Footer Link
    participant Browser as Web Browser
    User->>Site: Clicks "Privacy Policy"
    Note over Site: Evaluates URL: "https://www.linuxfoundation.org/..." | relLangURL
    Site->>Browser: Opens "/https:/www.linuxfoundation.org/legal/privacy-policy"
    Browser->>Browser: Requests host web server
    Browser-->>User: Renders 404 Not Found Page
Loading

Signed-off-by: aniket866 <iamaniketkumarmaner@gmail.com>
@github-actions

Copy link
Copy Markdown

👋 @aniket866

Welcome to the Microcks community! 💖

Thanks and congrats 🎉 for opening your first pull request here! Be sure to follow the pull request template or please update it accordingly.

Hope you have a great time there!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Broken External Footer Links due to relLangURL Filter

1 participant