Skip to content

Commit

Permalink
Urlencode the ID in the record link
Browse files Browse the repository at this point in the history
  • Loading branch information
maccabeelevine committed Jan 5, 2024
1 parent 852af5c commit bdecd88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module/VuFind/src/VuFind/Recommend/ConsortialVuFind.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ public function getResults()
$this->searchFilters
);
foreach (($results['records'] ?? []) as $i => $record) {
$results['records'][$i]['url'] = $this->recordBaseUrl . '/' . $record['id'];
$results['records'][$i]['url'] =
$this->recordBaseUrl . '/' . urlencode($record['id']);
}
return $results;
}
Expand Down

0 comments on commit bdecd88

Please sign in to comment.