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

fix(nav): the for-vendors link can be set to current #575

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

machikoyasuda
Copy link
Member

@machikoyasuda machikoyasuda commented Aug 8, 2024

fixes #573

There was a small bug in the menu code that was preventing the For Vendors link from being highlighted when you're on that page. The menu should highlight the current page you are on.

Branch Preview vs. Prod

Branch Preview https://deploy-preview-575--cal-itp-mobility-marketplace.netlify.app/for-vendors
image

Production
image

@machikoyasuda machikoyasuda requested a review from a team as a code owner August 8, 2024 00:14
@machikoyasuda machikoyasuda self-assigned this Aug 8, 2024
Copy link

netlify bot commented Aug 8, 2024

Deploy Preview for cal-itp-mobility-marketplace ready!

Name Link
🔨 Latest commit 518c980
🔍 Latest deploy log https://app.netlify.com/sites/cal-itp-mobility-marketplace/deploys/66bba118c94db20008db6928
😎 Deploy Preview https://deploy-preview-575--cal-itp-mobility-marketplace.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.

Copy link
Member

@angela-tran angela-tran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix and debugging! I verified it works as expected on the preview site.

I dug into why it's ok for /contracts/ to have a trailing slash: it's because contracts is a folder with an index.html file, and either Jekyll or Netlify is making it so there is a trailing slash in the URL when you go to the Contracts page.

The other pages are just an .html file, and this logic replaces the .html part (no trailing slash appended or anything).

@machikoyasuda machikoyasuda merged commit ccc0044 into main Aug 13, 2024
5 checks passed
@machikoyasuda machikoyasuda deleted the fix/573-for-vendors branch August 13, 2024 18:10
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.

Bug: For Vendors page doesn't get highlighted when on page
2 participants