Skip to content

Commit

Permalink
Merge pull request #824 from City-of-Helsinki/UHF-11057
Browse files Browse the repository at this point in the history
UHF-11057: Remove extra urlencode
  • Loading branch information
jeremysteerio authored Jan 23, 2025
2 parents 63888fc + 4694e6b commit be77801
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ public function content(Request $request) : array|RedirectResponse {
* Render array.
*/
public function buildServiceGroups(string $addressName) : array {
$addressQuery = ['address' => urlencode($addressName)];
$addressQuery = ['address' => $addressName];
$viewsAddressQuery = ['address_search' => $addressName];

return [
[
Expand All @@ -153,11 +154,11 @@ public function buildServiceGroups(string $addressName) : array {
],
[
'link_label' => $this->t('Closest playgrounds and family houses', [], ['context' => 'Helsinki near you']),
'link_url' => $this->getInternalSearchLink(InternalSearchLink::PLAYGROUNDS_FAMILY_HOUSES, $addressQuery),
'link_url' => $this->getInternalSearchLink(InternalSearchLink::PLAYGROUNDS_FAMILY_HOUSES, $viewsAddressQuery),
],
[
'link_label' => $this->t('Closest daycare centres', [], ['context' => 'Helsinki near you']),
'link_url' => $this->getInternalSearchLink(InternalSearchLink::DAYCARES, $addressQuery),
'link_url' => $this->getInternalSearchLink(InternalSearchLink::DAYCARES, $viewsAddressQuery),
],
],
],
Expand Down

0 comments on commit be77801

Please sign in to comment.