There is 1 update.
 
 
Cristal / cid:jira-generated-image-avatar-c59c9a61-a6b8-4909-a7af-7e18cd5a88f1 CRISTAL-537 Open

Internal and external links are not distinguished

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-074a5a40-b9dd-44e7-978a-d3e7ac207763 Changes by Manuel Leduc on 23/May/25 14:54
 
Description: h2. Reproduction steps

# edit a page with blocknote
# add
twi two links : one internal, one external
# observe if there is a visual clue for the external link
# save
#
# observe if there is a visual clue for the external link in view mode

h2. Expected

In the 3 and 5, a visual clue indicates the external link

h2. Actual

In the 3 and 5 the visual clue is missing

h2. Analysis

In edit mode, this is because it was never introduced in Blocknote.
In view mode, this is because the markdown render indicates only a class on internal link, while the css class {{wikiexternallink}} is expected on external link (the style already exists).

{code:html}
<p>
    <span class="wikilink"><a href="http://localhost:15680/xwiki/bin/view/Sandbox/TestPage2">internal link</a></span>
</p>
<p>
    <span class="wikiexternallink"><a href="https://mleduc.xyz">external link</a></span>
</p>
{code}