These are the steps I have used to reach this problem.
Create this test plantuml file:
```
@startuml
actor User
rectangle "web" {
usecase uc01 as "Use Case 1 - Start
----
[[
https://www.google.co.uk/ Details]]
"
usecase uc02 as "Use Case 2 - Stop
----
[[
https://plantuml.com/ Details]]
"
User --> uc01
User --> uc02
}
@enduml
```
Then run command:
java -jar /home/user/Documents/misc/plantuml.jar basic-hyperlink-test.txt
which generates a png file which renders the hyperlinks as you would expect but if you click on the png file in an image editor of course nothing happens.
This other file is also generated, basic-hyperlink-test.cmapx:
```
<map id="basic-hyperlink-test_map" name="basic-hyperlink-test_map">
<area shape="rect" id="id1" href="
https://plantuml.com/" title="
https://plantuml.com/" alt="" coords="89,170,137,186"/>
<area shape="rect" id="id2" href="
https://www.google.co.uk/" title="
https://www.google.co.uk/" alt="" coords="305,170,354,186"/>
</map>
```
If I now go to the PlantUML web server and enter the above plantuml source, there are three hyperlinks I can click on : PNG, SVG and ASCII Art. If I click on PNG I get a png file, but if I select SVG, then I am presented with a diagram where I can click on Details hyperlink and links work.
I need to display this diagram on my Gitlab wiki, so I create a document named basic-hyperlink-test.md like this:
# Basic Hyperlink Test
```plantuml
@startuml
actor User
rectangle "web" {
usecase uc01 as "Use Case 1 - Start
----
[[
https://www.google.co.uk/ Details]]
"
usecase uc02 as "Use Case 2 - Stop
----
[[
https://plantuml.com/ Details]]
"
User --> uc01
User --> uc02
}
@enduml
```
push that, then when I view the file in the repository tree I click on the file, it presents the diagram as expected but when I click on the Details hyperlink it just enlarges the png image - and the link doesn't take me to the hyperlink target.
I am using Google Chrome Version 135.0.7049.85 (Official Build) (64-bit). Also get exactly the same behaviour with latest version Microsoft Edge. The version of PlantUML server is 1.2025.2.
How can I fix this so that hyperlinks in the diagram click through to the target?