-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic navigation link target #63
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for developer-center ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -9,6 +9,10 @@ import ThemeSwitcher from './ThemeSwitcher.vue' | |||
defineProps<{ navigation: NavigationType }>() | |||
|
|||
const currentTrigger = ref('') | |||
|
|||
function getTarget(url: string) { | |||
return url.startsWith('http') ? '_blank' : '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you return undefined
as the else case, does it leave out the target
attribute then in the rendered HTML?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to reject this PR already purely on the grounds that you can't spell "target" in the branch name and can't spell "dynamic" in the commit message. Take a few seconds more time.
1140994
to
6791799
Compare
No description provided.