Skip to content

Commit

Permalink
[#2102] Fix correct redirect link for new export
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperBrandt committed May 9, 2016
1 parent 29c2659 commit a2f7331
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion akvo/rsr/static/scripts-src/my-iati.js
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ function setCreateFileOnClick() {
if (button) {
button.onclick = function() {
// Add new=true parameter to URL and redirect to new URL
var linkSign = window.location.href.indexOf('&org=') < 0 ? '?' : '&';
var linkSign = window.location.href.indexOf('org=') < 0 ? '?' : '&';
window.location = window.location.href + linkSign + 'new=true';
};
}
Expand Down
2 changes: 1 addition & 1 deletion akvo/rsr/static/scripts-src/my-iati.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ function setCreateFileOnClick() {
if (button) {
button.onclick = function() {
// Add new=true parameter to URL and redirect to new URL
var linkSign = window.location.href.indexOf('&org=') < 0 ? '?' : '&';
var linkSign = window.location.href.indexOf('org=') < 0 ? '?' : '&';
window.location = window.location.href + linkSign + 'new=true';
};
}
Expand Down

0 comments on commit a2f7331

Please sign in to comment.