From b87b83e33cfc05f1e1be242493390f6d52786331 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Wed, 9 Jul 2025 13:47:55 +0100 Subject: [PATCH] Use full URL for keyboard shortcuts documentation (#26777) GitOrigin-RevId: dc165fc475a0d2513eaebec0176479dd538a7bac --- .../hotkeys-modal/components/hotkeys-modal-bottom-text.jsx | 3 ++- .../components/hotkeys-modal-bottom-text.test.jsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/services/web/frontend/js/features/hotkeys-modal/components/hotkeys-modal-bottom-text.jsx b/services/web/frontend/js/features/hotkeys-modal/components/hotkeys-modal-bottom-text.jsx index db6507e823..a11b79f004 100644 --- a/services/web/frontend/js/features/hotkeys-modal/components/hotkeys-modal-bottom-text.jsx +++ b/services/web/frontend/js/features/hotkeys-modal/components/hotkeys-modal-bottom-text.jsx @@ -10,8 +10,9 @@ export default function HotkeysModalBottomText() { // eslint-disable-next-line jsx-a11y/anchor-has-content, react/jsx-key eventTracking.sendMB('left-menu-hotkeys-template')} - href="/articles/overleaf-keyboard-shortcuts/qykqfvmxdnjf" + href="https://www.overleaf.com/articles/overleaf-keyboard-shortcuts/qykqfvmxdnjf" target="_blank" + rel="noreferrer" />, ]} /> diff --git a/services/web/test/frontend/features/hotkeys-modal/components/hotkeys-modal-bottom-text.test.jsx b/services/web/test/frontend/features/hotkeys-modal/components/hotkeys-modal-bottom-text.test.jsx index c3baeefa66..399a99ead4 100644 --- a/services/web/test/frontend/features/hotkeys-modal/components/hotkeys-modal-bottom-text.test.jsx +++ b/services/web/test/frontend/features/hotkeys-modal/components/hotkeys-modal-bottom-text.test.jsx @@ -15,7 +15,7 @@ describe('', function () { }) expect(link.getAttribute('href')).to.equal( - `/articles/overleaf-keyboard-shortcuts/qykqfvmxdnjf` + `https://www.overleaf.com/articles/overleaf-keyboard-shortcuts/qykqfvmxdnjf` ) }) })