From 220bce80834cf7b28b79095cbc0ee72c41943b35 Mon Sep 17 00:00:00 2001 From: Ere Maijala Date: Wed, 6 Sep 2023 12:40:17 +0300 Subject: [PATCH] Fix record redirect to collection to not mess up encoding of record id. --- module/VuFind/src/VuFind/Controller/AbstractRecord.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/Controller/AbstractRecord.php b/module/VuFind/src/VuFind/Controller/AbstractRecord.php index 8dce0ee6ed90..9ccf061b6aa6 100644 --- a/module/VuFind/src/VuFind/Controller/AbstractRecord.php +++ b/module/VuFind/src/VuFind/Controller/AbstractRecord.php @@ -351,7 +351,11 @@ public function homeAction() if (true === $driver->tryMethod('isCollection')) { $params = $this->params()->fromQuery() + $this->params()->fromRoute(); - $options = []; + // Path normalization breaks url-encoded percent signs used for + // UTF-8 characters (e.g. turning %25C3 to %C3), so disable it: + $options = [ + 'normalize_path' => false, + ]; if ($sid = $this->getSearchMemory()->getCurrentSearchId()) { $options['query'] = compact('sid'); }