Skip to content
Snippets Groups Projects
Commit c2093b94 authored by Bharath Kumar Kondeti's avatar Bharath Kumar Kondeti Committed by Jürgen Haas
Browse files

Issue #3432120: Domain URI uripath Causing Double Slashes

parent a4820bff
No related branches found
No related tags found
1 merge request!22Issue-3432120: Fixing domain uri path issue.
Pipeline #192474 passed with warnings
......@@ -612,8 +612,9 @@ class Domain extends ContentEntityBase implements DomainInterface {
if (!$this->isDefaultPort()) {
$uri .= ':' . $this->get('port')->value;
}
if (!empty($this->get('uripath')->value)) {
$uri .= '/' . trim($this->get('uripath')->value, '/');
$uripath = trim($this->get('uripath')->value, '/');
if (!empty($uripath)) {
$uri .= '/' . $uripath;
}
if ($this->cleanUrl && !empty($query)) {
$uri .= '/' . $query;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment