Skip to content

Commit

Permalink
Also strip /base_edit or /atct_edit
Browse files Browse the repository at this point in the history
Otherwise the loaded results will be the edit view itself, which is
then injected and starts loading more results, which will be the edit
view again and so on and so on… a.k.a. edit view inception! :)
  • Loading branch information
witsch committed Sep 4, 2020
1 parent 55b4c3e commit 9325315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archetypes/querywidget/querywidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@

$.querywidget.updateSearch = function () {
var base_url = $("base").attr("href");
base_url = base_url.replace(/\/edit$/, '');
base_url = base_url.replace(/\/[a-z_]*edit$/, '');
if (base_url.indexOf("portal_factory") !== -1) {
base_url = base_url.split("/").slice(0, -2).join("/");
}
Expand Down

0 comments on commit 9325315

Please sign in to comment.