Add hack comment

This commit is contained in:
sebastien 2024-05-17 19:42:13 +02:00
parent 4b7a8c23be
commit db860a819e

View file

@ -81,7 +81,11 @@ function Link(
? maybeAddBaseUrl(targetLinkWithoutPathnameProtocol)
: undefined;
// TODO temporary hack
// TODO find a way to solve this problem properly
// Fix edge case when useBaseUrl is used on a link
// "./" is useful for images and other resources
// But we don't need it for <Link>
// unfortunately we can't really make the difference :/
if (router === 'hash' && targetLink?.startsWith('./')) {
targetLink = targetLink?.slice(1);
}