Allow 'topurl' on all hyperlink or URL

0 votes
asked Mar 24, 2021 in Wanted features by The-Lu (60,140 points)

Hello PlantUML team,


  • Could you allow 'topurl' on all URL?

i.e. Could you change:

Line#107 in

return new Url(full, nullnull);

should be

return new Url(withTopUrl(full)nullnull);

Thanks @Martin for point out on the code.

Then here is the summary of my tests:


commented Mar 24, 2021 by The-Lu (60,140 points)

And on the same subject, and from:


1 Answer

0 votes
answered Mar 26, 2021 by plantuml (292,220 points)
We have completely rewritten the UrlBuilder class, so it should be really better now.

We also handle the 'file:' protocol for topurl.

However, we did not really test, so your feedback is welcome :-)
commented Mar 27, 2021 by The-Lu (60,140 points)

Thanks PlantUML,

1/ FYI, tested on chrome, on '' the links are now disabled? Why? We only show 'View Map Data'!

2/ Another question I dont understand this test (on line 140 of UrlBuilder):

if (url.startsWith("http:") == false && url.startsWith("https:") == false && topurl != null)

Because, with 'file:' this is OK, and this is without topurl even if this not on the line 140 test!