Skip to content

fix: open shortcut targets with noopener - #4488

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/shortcut-noopener
Nov 17, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/shortcut-noopener

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

Opening a shortcut to an external site gave that site a handle on the OpenCloud tab, so it could redirect it, e.g. to a fake login page. External shortcut targets now open in a new tab without that handle.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: the open shortcut handler opens external targets with '_blank' and 'noopener,noreferrer' (fails on main for all 7 external cases)
  • test case 2: browser: a local page opened via a shortcut tried to redirect the opener - on main the OpenCloud tab got redirected, with the fix the new tab has no opener and the tab stays put (file list, search results, search preview, public link)
  • test case 3: browser: same-origin shortcuts still navigate in the same tab, external ones still open as a normal new tab

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear merged commit 99efbe4 into main Nov 17, 2026
29 checks passed
@AlexAndBear
AlexAndBear deleted the fix/shortcut-noopener branch November 17, 2026 08:16
@openclouders openclouders mentioned this pull request Nov 17, 2026
1 task
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.

Opening a shortcut file lets the linked site navigate the OpenCloud tab

2 participants