Page renders twice when Site Alerts are also enabled

Created on 27 December 2020, almost 4 years ago
Updated 5 September 2024, 3 months ago

I have the latest module 8.x-2.0 installed with a Drupal 9.0.7 site in development. Everything was working fine. But when I logged in as a regular authenticated user for testing purposes and I get to the Agreement page, the whole site template is rendered twice. The top half of the page shows the "C-clamp" of the site header, navigation, and footer, but with a blank page body and some of the blocks missing too. The second half of the page shows the same template with the agreement page content inserted. Until the agreement is accepted, every page is rendered twice. After the user accepts the agreement, the bug goes away.

See attached screenshot (blurred to protect content) for a quick visual.

Update: I traced the start of the issue back to when I enabled the Site Alerts module. The two modules appear to be incompatible for some reason.

πŸ’¬ Support request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States JasonLuttrell Washington, DC area

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.

  • πŸ‡ΊπŸ‡ΈUnited States mradcliffe USA

    Sorry for the very late response.

    I looked at the site_alert module and I think the only thing that may be causing the double render is that the module has a route it loads via JavaScript, /ajax/site_alert.

    If the agreement is configured with Visibility to "Show on every page except the listed pages", then adding that path to the Visibility Pages configuration will prevent the Agreement from rendering when that path is requested.

Production build 0.71.5 2024