Problem/Motivation

The issue is caused by the code having a hardcoded path to /sw.js that it tries to load via JavaScript. But this receives a redirect due to the language path to /nl/sw.js which then triggers browser security and prevents load. Directly accessing /nl/sw.js does return the js file successfully

Originally reported in #3200316: The ID attribute for the push subscription management script does not match the generated ID of the toggle element

Steps to reproduce

Proposed resolution

Let Drupal generate the paths for the scripts and pass those as settings to the script.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

Kingdutch created an issue. See original summary.

  • Kingdutch committed 5272589 on 8.x-1.x
    Issue #3200545 by Kingdutch: Push notification scripts don't work with...
kingdutch’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.