Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Dynamic navigation link target #63

wants to merge 1 commit into from

Conversation

onmax
Copy link
Member

@onmax onmax commented Oct 1, 2024

No description provided.

Copy link

netlify bot commented Oct 1, 2024

Deploy Preview for developer-center ready!

Name Link
🔨 Latest commit 6791799
🔍 Latest deploy log https://app.netlify.com/sites/developer-center/deploys/66fc30d248ddc40008fad712
😎 Deploy Preview https://deploy-preview-63--developer-center.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@onmax
Copy link
Member Author

onmax commented Oct 1, 2024

#38

@sisou sisou changed the title dynanmic target Dynamic navigation link target Oct 1, 2024
@@ -9,6 +9,10 @@ import ThemeSwitcher from './ThemeSwitcher.vue'
defineProps<{ navigation: NavigationType }>()

const currentTrigger = ref('')

function getTarget(url: string) {
return url.startsWith('http') ? '_blank' : ''
Copy link
Member

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?

Copy link
Member

@sisou sisou left a 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.

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.

2 participants