Skip to content
","upvoteCount":1,"url":"https://github.com/unpoly/unpoly/discussions/767#discussioncomment-13802797"}}}
Discussion options

You must be logged in to vote

Shouldn't the menu links be absolute in this case?

If you cannot render absolute URLs into your HTML for some reason, you could also try absolutizing the URLs when they are first rendered:

up.compiler('.menu a[href]', function(link) {
  link.href = up.util.normalizeURL(link.href)
})

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by murty2
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants