You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Build the website and scroll to the footer.
Click on the "Privacy Policy" or "Terms & Conditions" links.
Observe that the browser redirects to a broken 404 page on microcks.io rather than the external Linux Foundation website.
Reproduction 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
Describe the bug
Description
The footer layout filters external absolute menu links using the
relLangURLfilter.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 therelLangURLfilter 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
microcks.iorather than the external Linux Foundation website.Reproduction 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