We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Run locally the active nav link renders blue:
This doesn't appear to be happening in our staging environment.
function getUrlPath(url) { const parts = url.split("/"); return "/" + parts[parts.length - 1]; }
function renderNavLink(navLink, index) { return ( <a href={navLink.href} target={navLink.target} key={index} className={ getUrlPath(currentURL) === navLink.href ? "font-regular text-blue-700" : "font-regular text-gray-800 hover:text-blue-700" } > {navLink.linkText} </a> ); }
Add console.log to above code to check what getUrlPath is returning on staging
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Run locally the active nav link renders blue:
This doesn't appear to be happening in our staging environment.
function getUrlPath(url) { const parts = url.split("/"); return "/" + parts[parts.length - 1]; }
Add console.log to above code to check what getUrlPath is returning on staging
The text was updated successfully, but these errors were encountered: