Skip to content

Commit

Permalink
Merge pull request #1983 from bolt/fix/backend-url
Browse files Browse the repository at this point in the history
 Fix url for 'bulk' operations on Listing screen, for sites with modified Backend URL
  • Loading branch information
I-Valchev authored Oct 13, 2020
2 parents c5cba5a + 8c18220 commit 84e1728
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/app/listing/Components/SelectBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default {
plural: String,
labels: Object,
csrftoken: String,
backendPrefix: RegExp,
},
data() {
return {
Expand Down Expand Up @@ -92,7 +93,7 @@ export default {
computed: {
postUrl() {
if (this.selectedAction) {
return '/bolt/bulk/' + this.selectedAction.key;
return this.backendPrefix + 'bulk/' + this.selectedAction.key;
}
return '';
Expand Down
1 change: 1 addition & 0 deletions templates/content/listing.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
'update_all': 'action.update_all'|trans,
}|json_encode }}"
:csrftoken="{{ csrf_token('batch')|json_encode }}"
:backend-prefix="{{ path('bolt_dashboard') }}"
></listing-select-box>

{% set filterOptions = {
Expand Down

0 comments on commit 84e1728

Please sign in to comment.