Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WCMS
uw_sites_all
Commits
f7ee4061
Commit
f7ee4061
authored
Sep 17, 2021
by
Igor Biki
Browse files
ISTWCMS-5009: Using internal path for main menu when installing new site.
parent
2e5fed4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
uw_sites_all.install
View file @
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'
],
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment