Skip to content

Commit

Permalink
Bugfix with language switcher luyadev#1876
Browse files Browse the repository at this point in the history
  • Loading branch information
boehsermoe committed Nov 19, 2018
1 parent 8b213cc commit 15bca4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/web/UrlManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ private function urlReplaceModule($url, $navItemId, Composition $composition)
}

// if current controller context has an other module as the requested url, its an outgoing link to another module which should not be modificated.
if ($moduleName !== Yii::$app->controller->module->id) {
if ($moduleName !== $item->moduleName && $moduleName !== Yii::$app->controller->module->id) {
return $url;
}

Expand Down
2 changes: 1 addition & 1 deletion dev/RepoController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* Or clone a custom repo into the repos folder:
*
* ```sh
* ./venodr/bin/luyadev repo/clone luyadev luya-module-news
* ./venodr/bin/luyadev repo/clone luyadev/luya-module-news
* ```
*
* In order to remove an existing repo from update list
Expand Down

0 comments on commit 15bca4e

Please sign in to comment.