Skip to content

Fix #1316: Open API Docs in new tab and fix back navigation loading loop - #1391

Open
Iam-jayant wants to merge 12 commits into
conductor-oss:mainfrom
Iam-jayant:fix/api-docs-back-navigation-loading
Open

Fix #1316: Open API Docs in new tab and fix back navigation loading loop#1391
Iam-jayant wants to merge 12 commits into
conductor-oss:mainfrom
Iam-jayant:fix/api-docs-back-navigation-loading

Conversation

@Iam-jayant

Copy link
Copy Markdown

Fixes #1316

Summary of Changes

  • Set isOpenNewTab: true on swaggerItem in sidebarCoreItems.tsx so the "API Docs" sidebar link opens in a new browser tab.
  • Used window.location.replace instead of window.location.href in ApiReferencePage.tsx to replace the history entry during redirection, preventing browser back-navigation loading loops.
  • Added unit tests for sidebarCoreItems and ApiReferencePage.

…ion loading loop

Open API Docs sidebar link in a new tab by setting isOpenNewTab to true in sidebarCoreItems.
Use window.location.replace instead of window.location.href in ApiReferencePage to prevent browser history loops and infinite loading state when navigating back.
Add unit tests for sidebarCoreItems and ApiReferencePage.
Copilot AI review requested due to automatic review settings July 23, 2026 11:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Iam-jayant
Iam-jayant requested a review from Copilot July 24, 2026 04:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Iam-jayant

Copy link
Copy Markdown
Author

@kowser-orkes @ajlai-orkes @KunalKumar-1 Guys, review this one.

@Iam-jayant
Iam-jayant requested a review from Copilot July 27, 2026 06:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Iam-jayant
Iam-jayant requested review from Copilot July 27, 2026 17:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@v1r3n
v1r3n requested a review from ajlai-orkes July 28, 2026 05:16
@Iam-jayant
Iam-jayant requested a review from Copilot July 29, 2026 11:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Iam-jayant

Copy link
Copy Markdown
Author

@ajlai-orkes review the changes

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

Suppressed comments (1)

ui-next/src/pages/apiDocs/tests/ApiReferencePage.test.tsx:19

  • This test overwrites window.location but never restores it, which can leak state into other tests and cause order-dependent failures. Prefer restoring the original window.location in an afterEach (or use a spy/stub on window.location.replace without replacing the whole object).
  it("replaces location with swagger url on mount", () => {
    const replaceMock = vi.fn();
    Object.defineProperty(window, "location", {
      configurable: true,
      value: {

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.

[3.32.0-rc.9] API Docs button in sidebar doesn’t open in a new tab and when you go back it gets stuck on loading

3 participants