Commit 8f27c30e authored by Chris Shantz's avatar Chris Shantz
Browse files

Merge branch '1.0.x' into prod/1.0.x

parents b64de6b9 df3a3969
...@@ -45,12 +45,12 @@ function uw_sites_all_install() { ...@@ -45,12 +45,12 @@ function uw_sites_all_install() {
foreach ($menu_items as $menu_item) { foreach ($menu_items as $menu_item) {
// Create the URL from the route name. // 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. // Create the actual menu link.
MenuLinkContent::create([ MenuLinkContent::create([
'title' => $menu_item['title'], 'title' => $menu_item['title'],
'link' => ['uri' => 'internal:' . $url], 'link' => ['uri' => 'internal:/' . $url],
'menu_name' => $menu_item['menu_name'], 'menu_name' => $menu_item['menu_name'],
'weight' => $menu_item['weight'], 'weight' => $menu_item['weight'],
'enabled' => $menu_item['enabled'], '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