Преглед изворни кода

Use full URL for keyboard shortcuts documentation (#26777)

GitOrigin-RevId: dc165fc475a0d2513eaebec0176479dd538a7bac
Alf Eaton пре 1 година
родитељ
комит
b87b83e33c

+ 2 - 1
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
           <a
             onClick={() => 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"
           />,
         ]}
       />

+ 1 - 1
services/web/test/frontend/features/hotkeys-modal/components/hotkeys-modal-bottom-text.test.jsx

@@ -15,7 +15,7 @@ describe('<HotkeysModalBottomText />', function () {
     })
 
     expect(link.getAttribute('href')).to.equal(
-      `/articles/overleaf-keyboard-shortcuts/qykqfvmxdnjf`
+      `https://www.overleaf.com/articles/overleaf-keyboard-shortcuts/qykqfvmxdnjf`
     )
   })
 })