Skip to content

Commit

Permalink
Fix base_url variable when editing a collection
Browse files Browse the repository at this point in the history
  • Loading branch information
rodfersou committed Jul 29, 2016
1 parent 80fd0c9 commit 4f1af29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Expand Up @@ -4,6 +4,9 @@ Changelog
1.1.3 (unreleased)
------------------

- Fix base_url variable when editing a collection.
[rodfersou]

- Added 'safe_unicode' call for raw query values.
[rodfersou]

Expand Down
1 change: 1 addition & 0 deletions archetypes/querywidget/querywidget.js
Expand Up @@ -157,6 +157,7 @@

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

0 comments on commit 4f1af29

Please sign in to comment.