Skip to content

Commit

Permalink
fixed: use route generation instead of fixed url
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed Oct 14, 2021
1 parent 3c0a2a1 commit 414231f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/default/resources/widget_manager/widget_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@
$title = $widget_page->title ?: false;
if ($title && elgg_can_edit_widget_layout($widget_page->context)) {

$href = elgg_normalize_url(elgg_http_add_url_query_elements('widgets/add_panel', [
$href = elgg_generate_url('widgets:add_panel', [
'context' => elgg_get_context(),
'context_stack' => elgg_get_context_stack(),
'show_access' => true,
'owner_guid' => elgg_get_page_owner_guid(),
]));
]);

elgg_register_menu_item('title', [
'name' => 'widgets_add',
Expand Down

0 comments on commit 414231f

Please sign in to comment.