How to toggle / hide Back to Administration?

Created on 11 July 2025, about 1 month ago

Problem/Motivation

I'd like to hide the "Back to Administration" link from the frontend.
(I assumed, toggle "Show Secondary Toolbar in Frontend" would do exactly that - but it seems not?)

Steps to reproduce

Install Gin, enable for the front end as well.

πŸ’¬ Support request
Status

Active

Version

5.0

Component

Miscellaneous

Created by

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

Comments & Activities

  • Issue created by @transmitter
  • πŸ‡¨πŸ‡­Switzerland saschaeggi Zurich

    I assume you're using the Core navigation module in this case?

    The navigation module overrides this setting and is located in the navigation module settings (top bar).

    We might need to add a notice if this is the case like the toolbar variants.

    Can you confirm that's the case?

  • I'm not sure - the Navigation module is not installed:

    These are my gin settings:

    And the block layout is untouched from the standard / out of the box as well:

    That's how it looks on the front end:

    However, I just noticed that for the admin user, it's not visible.
    Only for a non admin user the back to admin is visible. Maybe it's a permission issue?
    Couldn't find any activated permission for the authenticated user that hints towards the back to admin link though.

  • πŸ‡¨πŸ‡­Switzerland saschaeggi Zurich

    Is this something which only happens when Gin/or Gin toolbar is enabled or with Claro as well? πŸ€”
    Which theme is used in the frontend? Does it happen when e.g. Olivero is chosen?

  • πŸ‡ΊπŸ‡ΈUnited States joshuami Portland, OR

    Maybe slightly similar to the reported issue, the "Back to Administration" link does not check for whether the user has permission the /admin/content path. So if a user without the "Access the Content overview page" clicks on the breadcrumb, they get an Access Denied error.

    You may be wondering why a user would have permission to see the Gin theme and toolbar and not have the "Access the Content overview page" permission. In this case, I allow users of an intranet to see the Gin toolbar and navigation because it provides a link to edit their profile and potentially to save shortcuts off canvas, but they do not have permissions to see any administrative pages.

  • πŸ‡ΊπŸ‡ΈUnited States joshuami Portland, OR

    My issue was likely not related. I realized I was running an older version of Gin and Gin Toolbar. After updating to Gin 4.1.0 and Gin Toolbar 2.1.0, the permissions correctly hide the "Back to Administration" link. Apologies for the noise.

  • @saschaeggi
    I'm using Gin for the front-end and this happens on the front-end to a non admin user.
    With other themes, that doesn't seem to happen / they don't have that area in the first place?

  • πŸ‡¨πŸ‡­Switzerland saschaeggi Zurich

    Gin is an admin theme only. While you can use it as a Frontend theme it wasn't designed for it.

    You can override the template, adding a small helper module or hide it via CSS though. You might want to take a look at https://www.drupal.org/docs/contributed-themes/gin-admin-theme/custom-th... β†’

    I'll close this issue as works as designed.

Production build 0.71.5 2024