From 98970dca2c79a848d1760af44681a340d529ab83 Mon Sep 17 00:00:00 2001 From: DocArmoryTech Date: Tue, 30 Aug 2022 20:19:57 +0100 Subject: [PATCH] Alignment links missing / When baseurl is configured in the UI as: `https://cerebrate.example.com/` (`App.baseurl` is `https:\/\/cerebrate.example.com\/` in config.json a `/` between the `$baseurl` and the url path appears to be missing: - When viewing the index of all individuals (/individuals/index), links to the Organisations in their Alignments are missing a `/` - When viewing an organisation that includes individuals with an alignment, links to the Individuals are missing a `/` --- .../element/genericElements/IndexTable/Fields/alignments.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/element/genericElements/IndexTable/Fields/alignments.php b/templates/element/genericElements/IndexTable/Fields/alignments.php index 875c480..15c29e1 100644 --- a/templates/element/genericElements/IndexTable/Fields/alignments.php +++ b/templates/element/genericElements/IndexTable/Fields/alignments.php @@ -8,7 +8,7 @@ if ($field['scope'] === 'individuals') { '
%s @ %s
', h($alignment['type']), sprintf( - '%s', + '%s', $baseurl, h($alignment['organisation']['id']), h($alignment['organisation']['name']) @@ -28,7 +28,7 @@ if ($field['scope'] === 'individuals') { '
[%s] %s
', h($alignment['type']), sprintf( - '%s', + '%s', $baseurl, h($alignment['individual']['id']), h($alignment['individual']['email'])