Skip to content

Commit

Permalink
UHF-10773: Also set langauage param for finnish external links
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremysteerio committed Dec 13, 2024
1 parent 01d513b commit d82ea34
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions public/modules/custom/helfi_etusivu/src/Servicemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,9 @@ public function getLink(ServiceMapLink $link, string $address) : string {
$query = [
'link' => $link->link(),
'addresslocation' => Xss::filter($address),
'setlanguage' => $langcode,
];

if ($langcode !== 'fi') {
$query['setlanguage'] = $langcode;
}

$url = Url::fromUri(
self::SITE_URL,
[
Expand Down

0 comments on commit d82ea34

Please sign in to comment.