Skip to content

fix: re: external link on comment should open in new tab#621

Open
layarlaut wants to merge 1 commit intoXyphyn:mainfrom
layarlaut:re-fix-open-external-link-in-new-tab
Open

fix: re: external link on comment should open in new tab#621
layarlaut wants to merge 1 commit intoXyphyn:mainfrom
layarlaut:re-fix-open-external-link-in-new-tab

Conversation

@layarlaut
Copy link
Copy Markdown
Contributor

Retry #615 after reverted in #619

Added checked if the href provided has the same host with current url

Also use undefined to remove the target attributes instead of setting it as "_self" when it is an internal link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant