Turbo: Disable prefetching on various admin links to prevent unintended operations

Created on 23 February 2024, 4 months ago
Updated 5 March 2024, 4 months ago

Problem/Motivation

There are multiple admin links that will invoke an operation when requested, which means that if you just hover over them, you'll perform an action you likely didn't intend to. A common one is the shortcut module's add/remove link at the top of all admin pages.

Steps to reproduce

Log in, find and hover over these:

  • Shortcut add/remove at the top of all admin pages: will add or remove the shortcut.
  • Batch links: can start the batch in the background or prevent the current one from starting sometimes:
    • Check for updates link, i.e. admin/reports/updates/check

Proposed resolution

Add data-turbo-prefetch="false" to all of the above links; see Turbo prefetching documentation.

Remaining tasks

Do the above.

User interface changes

Listed links no longer perform action on prefetch, so stuff doesn't break unexpectedly.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada Ambient.Impact Toronto

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024