double slash in link

Created on 8 December 2024, 8 months ago

Problem/Motivation

I just installed this module. In the mails I receive all links have a double slash before the title of the node:
https://www.example.com//node-title

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇳🇱Netherlands promes

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

Comments & Activities

  • Issue created by @promes
  • 🇬🇧United Kingdom grdv

    Same here.
    Links in "new comments posted" are correct.
    Links in "Recent new or updated pages" contain an erroneous extra slash.

  • We are seeing this also.

  • This edit to line 670 of .../modules/contrib/notify/src/notify.php fixed it for me.

    -  $link = $host . '/' . Url::fromUri('internal:/node/' . $node->id())->toString();
    +  $link = $host . Url::fromUri('internal:/node/' . $node->id())->toString();
Production build 0.71.5 2024