Problem/Motivation

Browser Back Button Not Working in Drupal 10
$(...).once is not a function

Steps to reproduce

1) Install Drupal 10
2) Install Browser Back Button 2.0.0
3) Add Browser Back Button block to any region.
4) Click on back button its not working, see browser console its having JS errors.

Proposed resolution

I attached a patch that adds the core/once library and keeps the jQuery dependency.
(See https://www.drupal.org/node/3158256)

Remaining tasks

User interface changes

API changes

Data model changes

Comments

Sunil Chaurasiya created an issue. See original summary.

sunil chaurasiya’s picture

StatusFileSize
new1007 bytes
sunil chaurasiya’s picture

Assigned: sunil chaurasiya » Unassigned
Status: Needs work » Needs review
keshavv’s picture

StatusFileSize
new1.48 KB

Missing dependency in #2 patch. Resubmitting it with adding dependency.

coaston’s picture

#4 works fine, but it is possible to add pointer to link? (now it looks like a standard text)

bbc’s picture

I tried #4, but was unsuccessful. Am seeing, "Uncaught TypeError: once ID must be a string" in the console log.

nijolawrence’s picture

Fixed the error "Uncaught TypeError: once ID must be a string"

elavarasan r’s picture

Applied patch for javascript version changes issue.

elavarasan r’s picture

Status: Needs review » Fixed

Applied patch for javascript version changes issue.

elavarasan r’s picture

Status: Fixed » Closed (fixed)

Applied patch for javascript version changes issue.