- Issue created by @pianomansam
Drupal 10.3.5
Domain 2.0.0-beta2
When on an entity view route, I expect any links generated to include a destination by RedirectDestinationTrait
or \Drupal\Core\Routing\RedirectDestination
to have a proper, working destination. That is, the destination being an absolute link to the current page but without the domain.
Destinations generated by RedirectDestination
include the entity's domain, which breaks the functionality of the destination. When you visit the link, the destination parameter disappears, presumably because it is considered an external destination.
I'm not sure the easiest way to reproduce. I encountered this issue with a custom block that uses RedirectDestinationTrait
to create a login link with a destination of the current page.
I traced this issue to the very thing mentioned in
#3197879: Domain module renders invalid URLs when using domain source β
where DomainSourcePathProcessor
always sets the absolute option to true when viewing an entity assigned to a domain source.
Active
2.0
Code