Lukas Theussl opened DOXIASITETOOLS-112 and commented
See test case committed in r1174674. Given
to = "http://maven.apache.org/downloads.html";
from = "http://maven.apache.org/index.html";
getRelativePath( to, from ) returns "../downloads.html" instead of "downloads.html". It seems like the 'from' parameter is always supposed to be a directory. That's confusing and not very useful, also the javadocs state that the method should 'Calculate the relative path between two URLs or between two files.'.
Affects: doxia-integration-tools-1.4
Issue Links:
- DOXIASITETOOLS-110 DefaultSiteTool.getRelativePath returns nonsense if both paths are absolute with different scheme
("is duplicated by")