getsentry / getsentry/sentry

Dashboard environment filter not preserved when opening issue detail

Open
#117,790 3 comments 0 reactions 1 assignee View on GitHub

@DominikB2014 is already working on this.

Since Jun 22, 2026.

Bug Product Area: Dashboards
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
21h 23m
Merged PRs (30d)
607

Description

Environment

SaaS (https://sentry.io/)

Steps to Reproduce
  1. Open a dashboard with an environment filter set (e.g. production) — note the URL contains ?environment=production&statsPeriod=30d
  2. Click on any issue from a dashboard widget (e.g. via the "Open issue" context menu or direct link)
  3. Observe the Issue Details page URL and environment picker

https://github.com/user-attachments/assets/9ca8ca24-7e53-4477-b72a-f373f491cbd4

Expected Result

The Issue Details page inherits the environment selected on the dashboard. The environment query param should be forwarded when constructing the navigation link.

Actual Result

The Issue Details page drops the environment context entirely. The env picker shows "All Envs" and the URL contains only ?project=<id> so the environment (and statsPeriod) params from the dashboard URL are absent.

Product Area

Dashboards

Link

No response

DSN

No response

Version

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.