Skip to content

Commit

Permalink
Fixed snipe#4390 - results couldn’t be loaded error
Browse files Browse the repository at this point in the history
The baseUrl in the javascript routes is already appending a trailing slash, so don’t prepend a slash in front of api call
  • Loading branch information
snipe committed Nov 8, 2017
1 parent e6ff447 commit d1022e8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion public/js/build/all.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/dist/all.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/mix-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"/css/app.css.map": "/css/app.css.map?id=bdbe05e6ecd70ccfac72",
"/css/overrides.css.map": "/css/overrides.css.map?id=898c91d4a425b01b589b",
"/css/dist/all.css": "/css/dist/all.css?id=7c3842d2639193ac7e88",
"/js/dist/all.js": "/js/dist/all.js?id=16d568df949bf39d8ff6",
"/js/dist/all.js": "/js/dist/all.js?id=991cd06c975979f6f067",
"/css/build/all.css": "/css/build/all.css?id=7c3842d2639193ac7e88",
"/js/build/all.js": "/js/build/all.js?id=16d568df949bf39d8ff6"
"/js/build/all.js": "/js/build/all.js?id=991cd06c975979f6f067"
}
4 changes: 3 additions & 1 deletion resources/assets/js/snipeit.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ $(document).ready(function () {
link.select2({

ajax: {
url: baseUrl + '/api/v1/' + endpoint + '/selectlist',

// the baseUrl includes a trailing slash
url: baseUrl + 'api/v1/' + endpoint + '/selectlist',
dataType: 'json',
delay: 250,
headers: {
Expand Down

0 comments on commit d1022e8

Please sign in to comment.