Skip to content

Conversation

@KianNH
Copy link
Member

@KianNH KianNH commented Jan 15, 2025

Summary

Fix isCurrent sidebar item on custom pages and nested hideChildren pages.

Astro.params.slug is undefined on custom pages, such as those used by Workers AI models.

Some pages do not exist on the sidebar, i.e those in a hideChildren folder, and this will still highlight the parent page.

Screenshots (optional)

Before:
image
image

After:
image
image

@cloudflare-workers-and-pages
Copy link

Deploying cloudflare-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: fe71b0c
Status: ✅  Deploy successful!
Preview URL: https://f77be0ac.cloudflare-docs-7ou.pages.dev
Branch Preview URL: https://kian-pcx-15348.cloudflare-docs-7ou.pages.dev

View logs

@KianNH KianNH merged commit 0cc2a2b into production Jan 15, 2025
11 checks passed
@KianNH KianNH deleted the kian/PCX-15348 branch January 15, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants