michael-o commented on issue #780: URL: https://github.com/apache/maven-site/issues/780#issuecomment-2888894027
Found it: `org.apache.maven.doxia.site.inheritance.DefaultSiteModelInheritanceAssembler.relativizeLink(String, String)` which calls `org.apache.maven.doxia.site.inheritance.URIPathDescriptor.URIPathDescriptor(String, String)`. Read the Javadoc. It strips the slash *and* it considers the site URL as base, it does not consider the full URL to relativize. It does not even consider a scheme-releative path (e..g, `//maven.apache.org`). In my opinion, we need to take a look at https://url.spec.whatwg.org/#url-writing and do it like browsers do. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org