Turn off cookie banner on admin pages

Created on 23 December 2021, almost 3 years ago
Updated 21 December 2023, 11 months ago

Problem/Motivation

When logged in as an admin I am presented with the cookie banner. Bit of an edge case, but it would be good not to load it on admin pages and save admins a click.

Steps to reproduce

  • Login as an admin user
  • Load up an administration page such as the status report
  • Add the cookie script to the modules config page
  • Reload the status page
  • See the cookie banner

Proposed resolution

Add logic to check if the page is an admin page. If it is, don't add the script to the page.

IF users wanted this to load on admin pages (I can't think of a use case) this could be made into a switch on the config page.

Assigning this one to me as I'm hoping to add this functionality and a test. This is part of my personal development at work.

Cheers

Tom

Feature request
Status

RTBC

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom blacklabel_tom

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024