Skip to content

Commit 9f48a51

Browse files
committed
feat: add lang parameter to degree program URL when locale is switched
1 parent 6cf44ca commit 9f48a51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Application/DegreeProgramViewTranslated.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -464,10 +464,10 @@ public function modified(): string
464464

465465
public function link(): string
466466
{
467-
return $this->link;
467+
return is_locale_switched() ? $this->linkWithLang() : $this->link;
468468
}
469469

470-
public function linkWithLang(): string
470+
protected function linkWithLang(): string
471471
{
472472
return add_query_arg(
473473
[

0 commit comments

Comments
 (0)