Commit ea8db032 authored by webchick's avatar webchick

Issue #2095121 by clemens.tolboom, jibran: Ensure every path in routing.yml...

Issue #2095121 by clemens.tolboom, jibran: Ensure every path in routing.yml files has a leading slash.
parent b9ed957d
......@@ -20,7 +20,7 @@ action.admin_configure:
_permission: 'administer actions'
action.delete:
path: 'admin/config/system/actions/configure/{action}/delete'
path: '/admin/config/system/actions/configure/{action}/delete'
defaults:
_entity_form: 'action.delete'
requirements:
......
......@@ -13,7 +13,7 @@ custom_block.add_page:
_permission: 'administer blocks'
custom_block.add_form:
path: block/add/{custom_block_type}
path: '/block/add/{custom_block_type}'
defaults:
_content: 'Drupal\custom_block\Controller\CustomBlockController::addForm'
requirements:
......
......@@ -46,7 +46,7 @@ comment.confirm_delete:
_entity_access: 'comment.delete'
comment.reply:
path: 'comment/reply/{entity_type}/{entity_id}/{field_name}/{pid}'
path: '/comment/reply/{entity_type}/{entity_id}/{field_name}/{pid}'
defaults:
_content: '\Drupal\comment\Controller\CommentController::getReplyForm'
_title: 'Add new comment'
......
......@@ -6,14 +6,14 @@ config_test.list_page:
_access: 'TRUE'
config_test.entity_add:
path: 'admin/structure/config_test/add'
path: '/admin/structure/config_test/add'
defaults:
_entity_form: 'config_test'
requirements:
_access: 'TRUE'
config_test.entity:
path: 'admin/structure/config_test/manage/{config_test}'
path: '/admin/structure/config_test/manage/{config_test}'
defaults:
_controller: '\Drupal\config_test\ConfigTestController::edit'
entity_type: 'config_test'
......@@ -21,7 +21,7 @@ config_test.entity:
_access: 'TRUE'
config_test.entity_enable:
path: 'admin/structure/config_test/manage/{config_test}/enable'
path: '/admin/structure/config_test/manage/{config_test}/enable'
defaults:
_content: '\Drupal\config_test\ConfigTestController::enable'
entity_type: 'config_test'
......@@ -29,7 +29,7 @@ config_test.entity_enable:
_access: 'TRUE'
config_test.entity_disable:
path: 'admin/structure/config_test/manage/{config_test}/disable'
path: '/admin/structure/config_test/manage/{config_test}/disable'
defaults:
_content: '\Drupal\config_test\ConfigTestController::disable'
entity_type: 'config_test'
......@@ -37,7 +37,7 @@ config_test.entity_disable:
_access: 'TRUE'
config_test.entity_delete:
path: 'admin/structure/config_test/manage/{config_test}/delete'
path: '/admin/structure/config_test/manage/{config_test}/delete'
defaults:
_entity_form: 'config_test.delete'
entity_type: 'config_test'
......
contact.category_delete:
path: 'admin/structure/contact/manage/{contact_category}/delete'
path: '/admin/structure/contact/manage/{contact_category}/delete'
defaults:
_entity_form: contact_category.delete
_title: 'Delete'
......
content_translation.translatable:
path: 'admin/config/regional/content_translation/translatable/{entity_type}/{field_name}'
path: '/admin/config/regional/content_translation/translatable/{entity_type}/{field_name}'
defaults:
_form: 'Drupal\content_translation\Form\TranslatableForm'
requirements:
......
......@@ -6,7 +6,7 @@ dblog.overview:
_permission: 'access site reports'
dblog.event:
path: 'admin/reports/event/{event_id}'
path: '/admin/reports/event/{event_id}'
defaults:
_content: '\Drupal\dblog\Controller\DbLogController::eventDetails'
requirements:
......
field_ui.list:
path: 'admin/reports/fields'
path: '/admin/reports/fields'
defaults:
_entity_list: 'field_entity'
requirements:
......
help.main:
path: 'admin/help'
path: '/admin/help'
defaults:
_content: '\Drupal\help\Controller\HelpController::helpMain'
requirements:
_permission: 'access administration pages'
help.page:
path: 'admin/help/{name}'
path: '/admin/help/{name}'
defaults:
_content: '\Drupal\help\Controller\HelpController::helpPage'
requirements:
......
......@@ -13,7 +13,7 @@ image.style_edit:
_permission: 'administer image styles'
image.style_delete:
path: 'admin/config/media/image-styles/manage/{image_style}/delete'
path: '/admin/config/media/image-styles/manage/{image_style}/delete'
defaults:
_entity_form: 'image_style.delete'
_title: 'Delete'
......@@ -21,7 +21,7 @@ image.style_delete:
_permission: 'administer image styles'
image.effect_delete:
path: 'admin/config/media/image-styles/manage/{image_style}/effects/{image_effect}/delete'
path: '/admin/config/media/image-styles/manage/{image_style}/effects/{image_effect}/delete'
defaults:
_form: '\Drupal\image\Form\ImageEffectDeleteForm'
requirements:
......
......@@ -64,7 +64,7 @@ language.negotiation_browser:
_permission: 'administer languages'
language.negotiation_browser_delete:
path: 'admin/config/regional/language/detection/browser/delete/{browser_langcode}'
path: '/admin/config/regional/language/detection/browser/delete/{browser_langcode}'
defaults:
_form: '\Drupal\language\Form\NegotiationBrowserDeleteForm'
requirements:
......
......@@ -35,14 +35,14 @@ menu.link_edit:
_entity_access: 'menu_link.update'
menu.link_reset:
path: 'admin/structure/menu/item/{menu_link}/reset'
path: '/admin/structure/menu/item/{menu_link}/reset'
defaults:
_entity_form: 'menu_link.reset'
requirements:
_entity_access: 'menu_link.reset'
menu.link_delete:
path: 'admin/structure/menu/item/{menu_link}/delete'
path: '/admin/structure/menu/item/{menu_link}/delete'
defaults:
_entity_form: 'menu_link.delete'
requirements:
......@@ -63,7 +63,7 @@ menu.menu_edit:
_entity_access: 'menu.update'
menu.delete_menu:
path: 'admin/structure/menu/manage/{menu}/delete'
path: '/admin/structure/menu/manage/{menu}/delete'
defaults:
_entity_form: 'menu.delete'
_title: 'Delete menu'
......
path.delete:
path: 'admin/config/search/path/delete/{pid}'
path: '/admin/config/search/path/delete/{pid}'
defaults:
_form: '\Drupal\path\Form\DeleteForm'
requirements:
......
......@@ -65,7 +65,7 @@ shortcut.link_edit:
_access_shortcut_link: 'TRUE'
shortcut.overview:
path: 'user/{user}/shortcuts'
path: '/user/{user}/shortcuts'
defaults:
_content: '\Drupal\shortcut\Form\ShortcutForm::overview'
_title: 'Shortcuts'
......
......@@ -222,7 +222,7 @@ system.date_format_language_overview:
_permission: 'administer site configuration'
system.date_format_delete:
path: 'admin/config/regional/date-time/formats/manage/{date_format}/delete'
path: '/admin/config/regional/date-time/formats/manage/{date_format}/delete'
defaults:
_entity_form: 'date_format.delete'
_title: 'Delete date format'
......@@ -230,21 +230,21 @@ system.date_format_delete:
_entity_access: 'date_format.delete'
system.date_format_localize_reset:
path: 'admin/config/regional/date-time/locale/{langcode}/reset'
path: '/admin/config/regional/date-time/locale/{langcode}/reset'
defaults:
_form: '\Drupal\system\Form\DateFormatLocalizeResetForm'
requirements:
_permission: 'administer site configuration'
system.modules_list:
path: 'admin/modules'
path: '/admin/modules'
defaults:
_form: 'Drupal\system\Form\ModulesListForm'
requirements:
_permission: 'administer modules'
system.modules_list_confirm:
path: 'admin/modules/list/confirm'
path: '/admin/modules/list/confirm'
defaults:
_form: 'Drupal\system\Form\ModulesListConfirmForm'
requirements:
......@@ -279,7 +279,7 @@ system.php:
_permission: 'administer site configuration'
system.admin_index:
path: 'admin/index'
path: '/admin/index'
defaults:
_content: 'Drupal\system\Controller\AdminController::index'
requirements:
......@@ -330,14 +330,14 @@ system.theme_settings:
_access: 'TRUE'
system.modules_uninstall:
path: 'admin/modules/uninstall'
path: '/admin/modules/uninstall'
defaults:
_form: 'Drupal\system\Form\ModulesUninstallForm'
requirements:
_permission: 'administer modules'
system.modules_uninstall_confirm:
path: 'admin/modules/uninstall/confirm'
path: '/admin/modules/uninstall/confirm'
defaults:
_form: 'Drupal\system\Form\ModulesUninstallConfirmForm'
requirements:
......
ajax_test.dialog_contents:
path: ajax-test/dialog-contents
path: '/ajax-test/dialog-contents'
defaults:
_content: '\Drupal\ajax_test\Controller\AjaxTestController::dialogContents'
requirements:
_access: 'TRUE'
ajax_test.dialog_form:
path: ajax-test/dialog-form
path: '/ajax-test/dialog-form'
defaults:
_form: '\Drupal\ajax_test\AjaxTestForm'
requirements:
......
......@@ -13,7 +13,7 @@ common_test.destination:
_permission: 'access content'
common_test.drupal_render_invalid_keys:
path: 'common-test/drupal-render-invalid-keys'
path: '/common-test/drupal-render-invalid-keys'
defaults:
_title: 'Drupal Render'
_content: '\Drupal\common_test\Controller\CommonTestController::drupalRenderInvalidKeys'
......
......@@ -22,14 +22,14 @@ menu_test.login_callback:
_access: 'TRUE'
menu_test.callback_description:
path: 'menu_callback_description'
path: '/menu_callback_description'
defaults:
_content: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
requirements:
_permission: 'access content'
menu_test.callback_description_plain:
path: 'menu_callback_description/description-plain'
path: '/menu_callback_description/description-plain'
defaults:
_title: 'Menu item with a regular description'
_content: '\Drupal\menu_test\Controller\MenuTestController::menuTestCallback'
......@@ -37,7 +37,7 @@ menu_test.callback_description_plain:
_permission: 'access content'
menu_test.callback_description_callback:
path: 'menu_callback_description/description-callback'
path: '/menu_callback_description/description-callback'
defaults:
_title: 'Menu item with a description set with a callback'
_content: '\Drupal\menu_test\Controller\MenuTestController::menuTestCallback'
......@@ -45,7 +45,7 @@ menu_test.callback_description_callback:
_permission: 'access content'
menu_test.menu_no_title_callback:
path: 'menu_no_title_callback'
path: '/menu_no_title_callback'
defaults:
_title: 'A title with @placeholder'
_content: '\Drupal\menu_test\Controller\MenuTestController::menuTestCallback'
......
......@@ -7,14 +7,14 @@ test_page_test.test_page:
_access: 'TRUE'
test_page_test.render_title:
path: "/test-render-title"
path: '/test-render-title'
defaults:
_content: 'Drupal\test_page_test\Controller\Test::renderTitle'
requirements:
_access: 'TRUE'
test_page_test.static_title:
path: "/test-page-static-title"
path: '/test-page-static-title'
defaults:
_content: 'Drupal\test_page_test\Controller\Test::staticTitle'
_title: 'Static title'
......@@ -22,7 +22,7 @@ test_page_test.static_title:
_access: 'TRUE'
test_page_test.dynamic_title:
path: "/test-page-dynamic-title"
path: '/test-page-dynamic-title'
defaults:
_content: 'Drupal\test_page_test\Controller\Test::staticTitle'
_title_callback: 'Drupal\test_page_test\Controller\Test::dynamicTitle'
......@@ -30,14 +30,14 @@ test_page_test.dynamic_title:
_access: 'TRUE'
test_page_test.admin_render_title:
path: "/admin/test-render-title"
path: '/admin/test-render-title'
defaults:
_content: 'Drupal\test_page_test\Controller\Test::renderTitle'
requirements:
_access: 'TRUE'
test_page_test.render_title_controller:
path: "/test-render-title-controller"
path: '/test-render-title-controller'
defaults:
_controller: 'Drupal\test_page_test\Controller\Test::renderTitle'
requirements:
......
url_alter_test.foo:
path: 'url-alter-test/foo'
path: '/url-alter-test/foo'
defaults:
_content: '\Drupal\url_alter_test\Controller\URLAlterTestController::foo'
requirements:
......
......@@ -70,7 +70,7 @@ taxonomy.autocomplete_vid:
_permission: 'access content'
taxonomy.overview_terms:
path: 'admin/structure/taxonomy/manage/{taxonomy_vocabulary}'
path: '/admin/structure/taxonomy/manage/{taxonomy_vocabulary}'
defaults:
_form: 'Drupal\taxonomy\Form\OverviewTerms'
requirements:
......
tour_test.1:
path: 'tour-test-1'
path: '/tour-test-1'
defaults:
_content: '\Drupal\tour_test\Controller\TourTestController::tourTest1'
requirements:
_access: 'TRUE'
tour_test.1_action:
path: 'tour-test-1/action'
path: '/tour-test-1/action'
defaults:
_content: '\Drupal\tour_test\Controller\TourTestController::tourTest1'
requirements:
_access: 'TRUE'
tour_test.2:
path: 'tour-test-2/subpath'
path: '/tour-test-2/subpath'
defaults:
_content: '\Drupal\tour_test\Controller\TourTestController::tourTest2'
requirements:
......
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