Active
Project:
Legal
Version:
8.x-1.0-rc1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Apr 2020 at 17:37 UTC
Updated:
16 Mar 2023 at 06:30 UTC
Jump to comment: Most recent
I think I've just found an issue while setting the destination user edit page on one time login after T&C.
The problem is that the destination URL is setting using an string '' but this is not valid if drupal is installed in a context, for instance: www.example.com/drupal
In my local instance I've just change the absolute URL for a Url::fromRoute call like:
Previous:
$query = array('destination' => "/user/$uid/edit");
Actual:
$query = array('destination' => Url::fromRoute('entity.user.edit_form', ['user' => $uid])->toString());
Thanks.
Comments
Comment #2
anybody@mumarcar Is this issue still existing with 2.x? Then the version should be changed to 2.0.x please.