Skip to content

[Bug]: Reopening a closed issue tab with Mod+Shift+T omits the issue from the /issues URL #42744

Done

Description

@AymanKhan9

Summary

Reopening a closed issue tab on /issues with Mod+Shift+T (or Reopen Closed View) restores the tab in the right panel, but navigates to /issues with only readIssueListPreferences()—leaving the reopened issue's selection params (selectedEnvironmentId, selectedProjectId, selectedHost, tracker, scope, key) out of the URL.

Because the /issues right panel is not persisted (rightPanelStore.ts drops :issues-panel in partialize), the URL is the only thing that keeps the selected issue across reloads and shared links:

  • Reloading the page after reopening makes the issue disappear.
  • Copying or sharing the URL points to the bare /issues list instead of the reopened issue.

Steps to reproduce

  1. Open /issues and click any issue row to open it in the right panel (URL includes selectedEnvironmentId, selectedProjectId, selectedHost, tracker, scope, key).
  2. Close the issue tab (× or Mod+W). The URL clears the selection params.
  3. Press Mod+Shift+T (from /issues or another route) to reopen the closed issue tab.
  4. Observe the URL and reload the page.

Expected behavior

Mod+Shift+T writes the reopened issue's selection params into the /issues URL (matching /pull-requests reopen and openIssueLink.ts), so copying the URL points to the issue and reloading keeps it open.

Actual behavior

The issue tab reopens in the right panel, but the URL stays at /issues?who=...&status=... with no selection params, and reloading drops the reopened issue.

Cause

In apps/web/src/components/ReopenClosedViewShortcut.tsx, globalIssues navigates with linkOptions({ to: "/issues", search: readIssueListPreferences() }) without including the reopened selected issue surface's selection fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions