mirror of
https://github.com/Steffo99/bluelib.git
synced 2024-12-22 11:34:21 +00:00
🔧 Change anchor "link" conditions
This commit is contained in:
parent
60d5cb87a1
commit
fa17489183
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ export function Anchor({displayStyle, href, ...props}: AnchorProps): JSX.Element
|
|||
if(!displayStyle) {
|
||||
if(href) {
|
||||
// noinspection HttpUrlsUsage
|
||||
if(href.startsWith("http://") || href.startsWith("https://")) {
|
||||
if(href.startsWith("http://") || href.startsWith("https://") || href.startsWith("/") || !href.includes(":")) {
|
||||
displayStyle = "link"
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue