Skip to content

Commit

Permalink
Merge pull request #795 from City-of-Helsinki/UHF-10452
Browse files Browse the repository at this point in the history
UHF-10452: Change the news list news archive base url
  • Loading branch information
teroelonen authored Aug 27, 2024
2 parents e09d152 + 7decfcf commit ad390d7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ function helfi_paragraphs_news_list_preprocess_paragraph__news_list(&$variables)
->getUrl($langcode);

$instanceUrl = $instanceUrl . match ($langcode) {
'fi' => '/uutiset',
'sv' => '/nyheter',
default => '/news',
'fi' => '/uutiset/arkisto',
'sv' => '/nyheter/arkiv',
default => '/news/archive',
};
$archiveUrl = Url::fromUri($instanceUrl, ['query' => $params]);

Expand Down

0 comments on commit ad390d7

Please sign in to comment.