René's URL Explorer Experiment


Title: bug: Side menu items lose their active state on detail pages · Issue #5088 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: bug: Side menu items lose their active state on detail pages · Issue #5088 · triggerdotdev/trigger.dev

X Title: bug: Side menu items lose their active state on detail pages · Issue #5088 · triggerdotdev/trigger.dev

Description: Provide environment information System: OS: macOS 26.6.2 CPU: (15) arm64 Apple M5 Pro Memory: 210.33 MB / 24.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.23.2 - /Users/.../.nvm/versions/node/v22.23.2/bin/node npm: 10.9.8 - /Users/.../....

Open Graph Description: Provide environment information System: OS: macOS 26.6.2 CPU: (15) arm64 Apple M5 Pro Memory: 210.33 MB / 24.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.23.2 - /Users/.../.nvm/versions/node/v22....

X Description: Provide environment information System: OS: macOS 26.6.2 CPU: (15) arm64 Apple M5 Pro Memory: 210.33 MB / 24.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.23.2 - /Users/.../.nvm/versions/node/v22....

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/5088

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: Side menu items lose their active state on detail pages","articleBody":"### Provide environment information\n\n**System:**\n\n- OS: macOS 26.6.2\n- CPU: (15) arm64 Apple M5 Pro\n- Memory: 210.33 MB / 24.00 GB\n- Shell: 5.9 - /bin/zsh\n\n**Binaries:**\n\n- Node: 22.23.2 - /Users/.../.nvm/versions/node/v22.23.2/bin/node\n- npm: 10.9.8 - /Users/.../.nvm/versions/node/v22.23.2/bin/npm\n- bun: 1.3.10 - /Users/.../.bun/bin/bun\n- Deno: 2.9.6 - /opt/homebrew/bin/deno\n\n**Web:**\n\nTrigger.dev Cloud dashboard (cloud.trigger.dev)\n\nBrowser:\n\n \u003cChrome 156> on macOS 26.6.2 (arm64)\n\n### Describe the bug\n\nA side menu item is highlighted as active on its list page, but loses the highlight as soon\nas you open a detail page within that section. The side menu then shows no active item,\neven though you're still in the same area.\n\nThe video shows it with Tasks. The same happens on Runs (opening a run), and on every\nother section that has detail pages or overlays with their own URL.\n\nFiltering a list (e.g. Runs filters) does not trigger it; only navigating to a deeper page does.\n\n**Expected:**\n\nThe section's menu item stays active on all of its pages.\n\n**Why it matters:**\n\nMany dashboard pages share a similar layout (a list, a detail view,\na side panel), so it's easy to lose track of where you are. The side menu's active\nindicator is the most visible cue for your current location, and right now it\ndisappears exactly when you go one level deeper. The breadcrumbs help, but they're\nsmall and easy to overlook, so they don't make up for the missing highlight.\n\n### Reproduction repo\n\nN/A, dashboard UI bug. Reproducible in any project with at least one deployed task.\n\n### To reproduce\n\n1. Open a project environment in the dashboard\n2. Click \"Tasks\" in the side menu -> \"Tasks\" is active\n3. Click any task in the list -> \"Tasks\" is no longer active\n4. Click \"Runs\" -> \"Runs\" is active\n5. Click any run -> \"Runs\" is no longer active\n\n### Suggested fix\n\n**Root cause:**\n\n`SideMenuItem` marks an item active only on an exact pathname match. A `matchPrefix` prop (``pathname.startsWith(`${to}/`)``) already exists, but only the Alerts item uses it.\n\nI have a working fix on a branch, ready to open as a PR once vouched:\n\n- Section items (`buildSideMenuSections`) default to `matchPrefix: true`, so every item\n  stays active on its sub-pages. Runs, Sessions and Webhooks set it explicitly.\n- Dashboards opts out (`matchPrefix: false`): built-in and custom dashboards under\n  `\u003cenv>/dashboards/...` are their own menu items and should own the highlight.\n- Tasks links to the environment root, so `${to}/` would match every page. It gets a new\n  `activePathPrefix` prop instead, set to `\u003cenv>/tasks`.\n- The match keeps the `/` boundary, so `/concurrency` does not activate on\n  `/concurrency-limits`.\n- The path logic moves into a pure `isSideMenuPathActive()` function and stays inside the\n  existing check, so `yieldActiveToFavorite` keeps working (an active favorite still owns\n  the highlight).\n\nVerified with unit tests (each one fails when the fix is reverted) and in a local instance:\ntask, run, model compare, alert and environment variable sub-pages show no active item\non main and the correct one with the fix. Every page I checked has exactly one active item.\n\n**Files:**\n\n- `apps/webapp/app/components/navigation/SideMenuItem.tsx`\n- `apps/webapp/app/components/navigation/SideMenu.tsx`\n- `apps/webapp/app/components/navigation/sideMenuSections.tsx`\n\n### Additional information\n\n**Video:** \n\nhttps://github.com/user-attachments/assets/8e5aced6-35e5-4083-b771-d58a40bc8cdc\n\nNavigating Tasks to task detail page. The nav item loses its active state.","author":{"url":"https://github.com/Siregar","@type":"Person","name":"Siregar"},"datePublished":"2026-10-30T11:23:46Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/5088"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0c7e64d0-036e-f5be-87d3-ebe984c0bb1a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD94A:358701:60085E0:7F5D7F1:6AFAD892
html-safe-nonce0f730a62234f62a3d1dfc6632beba380dcf138e52c351fc966cfbb294772a778
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTRBOjM1ODcwMTo2MDA4NUUwOjdGNUQ3RjE6NkFGQUQ4OTIiLCJ2aXNpdG9yX2lkIjoiMzM0MDcyMjc4MTIwODM2OTI5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd552fe9e56c8d05602c69ca3bb7cee7dd78784c5a7d89e1148450546599a5441
hovercard-subject-tagissue:6118131588
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/5088/issue_layout
twitter:imagehttps://opengraph.githubassets.com/38e2c315ab5485f210d968273dfca5ca98ac52c7c7ffab9d992c423dea614c4f/triggerdotdev/trigger.dev/issues/5088
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/38e2c315ab5485f210d968273dfca5ca98ac52c7c7ffab9d992c423dea614c4f/triggerdotdev/trigger.dev/issues/5088
og:image:altProvide environment information System: OS: macOS 26.6.2 CPU: (15) arm64 Apple M5 Pro Memory: 210.33 MB / 24.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.23.2 - /Users/.../.nvm/versions/node/v22....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSiregar
hostnamegithub.com
expected-hostnamegithub.com
None02f4c00e74911c7cd779fc232c3130cee49eb39fd0ed4bfe3eea3b82c7c18084
turbo-cache-controlno-preview
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release33c41e9d150e44415272934d676dc63c57d89c3b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/issues/5088#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F5088
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F5088
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/5088
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/5088
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/5088
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests65 (65)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
https://github.com/triggerdotdev/trigger.dev
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/5088
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/5088
bug: Side menu items lose their active state on detail pageshttps://github.com/triggerdotdev/trigger.dev/issues/5088#top
https://github.com/Siregar
Siregarhttps://github.com/Siregar
on Oct 30, 2026https://github.com/triggerdotdev/trigger.dev/issues/5088#issue-6118131588
Sign up for freehttps://github.com/signup?return_to=https://github.com/triggerdotdev/trigger.dev/issues/5088
Sign in to commenthttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/5088
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.