Line of Code appears in Page Title

Created on 8 September 2023, over 1 year ago
Updated 23 September 2023, over 1 year ago

Problem/Motivation

I am using D10.1.3 and installed the January Bootstrap 5 theme, after I created a content/node I noticed that there is a line of code showing in the page title.

Steps to reproduce

  1. Install the theme
  2. Create a node/content
  3. Observe the Page Title

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

1.0

Component

Documentation

Created by

🇵🇭Philippines clarkssquared

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

Comments & Activities

  • Issue created by @clarkssquared
  • Assigned to Gautam_105@
  • Issue was unassigned.
  • 🇮🇳India Gautam_105@

    Hi clarkssquared , i have installed this theme but not got error. if you have other preprocessed method please shared.

    * Attached screenshot as well.

  • 🇵🇭Philippines clarkssquared

    Hello @Gautam_105@,

    I would like to ask what Drupal Version you are using? and what version of the theme? because I used D10.1.3 and January Bootstrap 5 theme v1.0.x-dev, I reinstalled the theme and cleared my cache but the issue is still showing in my end.

  • 🇮🇳India chetan 11

    Hi @clarkssquared
    I have fixed the issue for code is showing in page title, please go through the attached screenshot & patch.
    It is working fine now.

  • Status changed to Needs review over 1 year ago
  • Status changed to Needs work over 1 year ago
  • 🇵🇭Philippines clarkssquared

    Hi chetan 11,

    I applied your patch #5 and I confirmed that it fixed the issue, however, there is a whitespace error in your patch as per my terminal, I suggest to fix the whitespace error in your patch, apart from that it fixes the error. For reference, below is the whitespace error I mentiined.

    ➜  january_theme git:(1.0.x) curl https://www.drupal.org/files/issues/2023-09-12/code_appears_in_page_title-3386016.patch | git apply -v
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  1165  100  1165    0     0   2486      0 --:--:-- --:--:-- --:--:--  2532
    <stdin>:36: trailing whitespace.
          
    Checking patch css/base/base.css...
    Checking patch templates/navigation/breadcrumb.html.twig...
    Applied patch css/base/base.css cleanly.
    Applied patch templates/navigation/breadcrumb.html.twig cleanly.
    warning: 1 line adds whitespace errors.

    Please also look at the screenshot I attached for your reference.

    moving this to needs work for whitespace error.

    Thank you

  • 🇮🇳India chetan 11

    @clarkssquared
    I have fixed the white space also and created new patch. See interdiff.txt file for change reference.

  • Status changed to Needs review over 1 year ago
Production build 0.71.5 2024