Skip to content

Commit

Permalink
Fix record redirect to collection to not mess up encoding of record id.
Browse files Browse the repository at this point in the history
  • Loading branch information
EreMaijala committed Sep 6, 2023
1 parent 5b45fb6 commit 220bce8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion module/VuFind/src/VuFind/Controller/AbstractRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 220bce8

Please sign in to comment.