Commit df3a3969 authored by Liam Morland's avatar Liam Morland
Browse files

Merge branch 'feature/ISTWCMS-5009-ibiki-tests' into '1.0.x'

ISTWCMS-5009: Using internal path for main menu when installing new site.

See merge request !62
parents 2e5fed4f f7ee4061
......@@ -45,12 +45,12 @@ function uw_sites_all_install() {
foreach ($menu_items as $menu_item) {
// Create the URL from the route name.
$url = URL::fromRoute($menu_item['route_name'])->toString();
$url = URL::fromRoute($menu_item['route_name'])->getInternalPath();
// Create the actual menu link.
MenuLinkContent::create([
'title' => $menu_item['title'],
'link' => ['uri' => 'internal:' . $url],
'link' => ['uri' => 'internal:/' . $url],
'menu_name' => $menu_item['menu_name'],
'weight' => $menu_item['weight'],
'enabled' => $menu_item['enabled'],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment