fsr-de / myHPI

Django/Wagtail page serving myhpi.de
https://myhpi.de
11 stars 11 forks source link

Do not tag references within the same page as external links #537

Closed lukasrad02 closed 3 months ago

lukasrad02 commented 3 months ago

It is possible to create links to headers on the same page using #<header-slug>, e.g.

Link to [other section](#other-section).

# Other Section

Lorem ipsum

When creating such a link, it will be tagged as external link (the external link icon will be appended) and open in a new tab, as it does not start with the known own domain. We should extend the filter to recognize link hrefs starting with # as internal.