Error traversing to domain when already logged in

Created on 5 August 2022, almost 2 years ago
Updated 24 February 2024, 4 months ago

Problem/Motivation

TypeError: strpos(): Argument #1 ($haystack) must be of type string, Drupal\Core\Url given in strpos() (line 358 of /core/lib/Drupal/Component/Utility/UrlHelper.php)

Steps to reproduce

Traverse to a domain where you're already logged in with a different user account.

Proposed resolution

Change domain_traversal > src > Controller > DomainTraversal.php - Line 200 from:

':logout' => Url::fromRoute('user.logout'),

To:

':logout' => Url::fromRoute('user.logout')->toString(),

πŸ› Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia RaphaelBriskie

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024