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
Until squidfunk/mkdocs-material#6582 (comment) explained how mkdocs-material would henceforth only use absolute URLs to fix navigation issues. All of a sudden the CSS trick produced "external link" arrows everywhere.
This is where @squidfunk redirected me upstream to create this issue 😄
Now that URL matching doesn't work unless I hardcode the live deployment hostname - can we just get a standards-compliant rel="external" on non-internal links?
Sure, that's a great idea. Could I maybe ask you to create an issue / feature request at MkDocs, since Material for MkDocs only consumes what MkDocs produces – the Markdown to HTML translation, which is the part where this functionality needs to be added is here, and is done entirely as part of MkDocs, not Material for MkDocs.
I'm not a core maintainer of MkDocs, but judging from my knowledge of the internals, I'd guess that this could be very easily added in the _RelativePathTreeprocessor, which detects and replaces all links with their target URLs. Adding a check for externals URLs here, where the node is already available, and then adding rel=external should be a few lines of code.
Reacted by Manuel Kaufmann, Nick Veitch, Alexander Dunkel, Emil Eriksson, kosciuk, Clover Yan and Niklas Widmann
Activity