Skip to content

Commit

Permalink
fixed link issue, url creation now replaces only the first occurrence.
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Aug 3, 2015
1 parent a5d418c commit 2bd81a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/UrlManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function createUrl($params)
$context = true;
$options = $moduleObject->getContextOptions();
$link = $links->findOneByArguments(['id' => (int) $options['navItemId']]);
$response = str_replace($moduleName, $composition.$link['url'], $response);
$response = preg_replace("/$moduleName/", $composition.$link['url'], $response, 1);
}
}
}
Expand Down

0 comments on commit 2bd81a5

Please sign in to comment.