docus
docus copied to clipboard
[Components] External links in footer
How I can make the footer credits link open at the same page not by a new tab? It is now footer.credits.href you should implement something like footer.credits.to. No, the best way is not href or to. Let's change it to link. If the first character of value it will be to otherwise link.
There is another way of doing it like footer.credits.extrenal boolean value. This sound more better than checking for if the first character is / or not.
@bdrtsky ; should we shape a stable definition for a "link" type in our themes?
Maybe move these types to Elements?
As far as I know, latest NuxtLink support both internally and no need to differ href/to. We can try just to replace a with NuxtLink