Routing problem in js file

Created on 23 October 2023, about 1 year ago

Hello!

For my needs, I need to change the views_bulk_operations.update_selection path in the routing
from path: '/views-bulk-operations/ajax/{view_id}/{display_id}' to path: 'admin/views-bulk-operations/ajax/{view_id}/{display_id}'. I implemented this via RouteSubscriberBase in EventSubscriber.

But because you have a static path in js/frontUI.js - it prevents me from changing the path to the one I need.

var target_uri = drupalSettings.path.baseUrl + drupalSettings.path.pathPrefix + 'views-bulk-operations/ajax/' + this.view_id + '/' + this.display_id;
🐛 Bug report
Status

Active

Version

4.2

Component

Core

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024