Broken Book Access Code Form Title

Created on 31 March 2023, over 1 year ago
Updated 1 December 2023, 10 months ago

I'm using the Olivero theme on a Drupal 9.5.7 site. When I view the Book Access Form page, an html tag is displayed for the book title: em class="placeholder"

Screenshot:

I can remove the tag by changing the title callback code: Drupal\book_access_code\Form\BookAccessCodeForm::pageTitle

From:
return (string) $this->t('Access %bookTitle', ['%bookTitle' => $this->bookTitle()]);

To:
return (string) $this->t('Access @bookTitle', ['@bookTitle' => $this->bookTitle()]);

But that obviously removes the italics, so I'm not sure if that's the right fix.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States lisastreeter

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024