Url creation for the search form should use Drupal functions

Created on 18 July 2023, over 1 year ago

Problem/Motivation

When using multisites this module doesn't work.
Code should use Drupal functions whereever possible so Url generation works flawlessly.

Steps to reproduce

Have a multisite and use the search form (On a configured content type you should clikc "ChatGPT Content Generator") You wil be redirect to another site.

Proposed resolution

Use Drupal functions where possible, in this case "Url::fromUserInput()"

Remaining tasks

Review

🐛 Bug report
Status

Needs review

Version

2.1

Component

Code

Created by

🇧🇪Belgium mschudders

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

Comments & Activities

Production build 0.71.5 2024