diff --git a/config/routing/shop_routing.yaml b/config/routing/shop_routing.yaml index c8d3e65..880f129 100644 --- a/config/routing/shop_routing.yaml +++ b/config/routing/shop_routing.yaml @@ -1,11 +1,11 @@ speardevs_push_notifications_section: - path: /{_locale}/account/push-notifications + path: /account/push-notifications defaults: _controller: 'SpearDevs\SyliusPushNotificationsPlugin\Controller\Shop\PushNotificationAction' template: '@SpearDevsSyliusPushNotificationsPlugin/Shop/Account/push_notification.html.twig' speardevs_push_notifications_history_index: - path: /{_locale}/account/push-notifications-history + path: /account/push-notifications-history methods: [ GET ] defaults: _controller: speardevs_sylius_push_notifications_plugin.controller.push_notification_history::indexAction @@ -23,7 +23,7 @@ speardevs_push_notifications_history_index: - "expr:service('sylius.context.customer').getCustomer()" speardevs_push_notifications_history_mark_as_received: - path: /{_locale}/account/push-notifications-history/{id}/mark-as-received + path: /account/push-notifications-history/{id}/mark-as-received methods: [ PUT ] defaults: _controller: speardevs_sylius_push_notifications_plugin.controller.push_notification_history::applyStateMachineTransitionAction @@ -36,4 +36,4 @@ speardevs_push_notifications_history_mark_as_received: bentools_webpush: resource: '@WebPushBundle/Resources/config/routing.xml' - prefix: /{_locale}/webpush + prefix: /webpush diff --git a/templates/Shop/PushNotifications/_push_notifications_controls.html.twig b/templates/Shop/PushNotifications/_push_notifications_controls.html.twig index d0c6bf4..1c40b2f 100644 --- a/templates/Shop/PushNotifications/_push_notifications_controls.html.twig +++ b/templates/Shop/PushNotifications/_push_notifications_controls.html.twig @@ -2,7 +2,7 @@ {{ stimulus_controller('shop/push-notifications', { publicKey: app.request.server.get('WEBPUSH_PUBLIC_KEY'), serviceWorkerPath: '/serviceWorker.js', - subscribeUrl: '/' ~ app.request.locale ~ '/webpush/' + subscribeUrl: '/webpush/' }) }} >