-
Notifications
You must be signed in to change notification settings - Fork 7
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
content/issue 75 final content and site review #127
content/issue 75 final content and site review #127
Conversation
✅ Deploy Preview for super-tapioca-5987ce ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
||
links.forEach((link) => { | ||
if (!route.startsWith("/blog/") && link.getAttribute("href").startsWith("/")) { | ||
const linkUrl = new URL(`https://www.greenwoodjs.dev${link.getAttribute("href")}`); |
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.
Nit pick.. the URL()
class can take 2 arguments, which would avoid the string concat.
const linkUrl = new URL(`https://www.greenwoodjs.dev${link.getAttribute("href")}`); | |
const linkUrl = new URL(link.getAttribute("href"), 'https://www.greenwoodjs.dev'); |
https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#parameters
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.
Oh right, I always forget about that lol. Next time! (Or happy to accept a PR for it 👍)
Related Issue
resolves #75
Summary of Changes
TODO