Skip to content

Commit

Permalink
fileservice change so that gallery can have url ending in filename as…
Browse files Browse the repository at this point in the history
… opposed to /view
  • Loading branch information
smesdaghi committed Jan 1, 2016
1 parent f152876 commit 0dfb70c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/configuration/ConfigService.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
id: 0,
proxy: '/proxy/?url=',
nominatimUrl: 'http://nominatim.openstreetmap.org',
fileserviceUrlTemplate: '/api/fileservice/{}/view'
fileserviceUrlTemplate: '/api/fileservice/view/{}'
};

if (goog.isDefAndNotNull($window.config)) {
Expand Down
2 changes: 1 addition & 1 deletion src/common/featuremanager/FeatureManagerService.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@

for (var i = 0; i < picStrings.length; i++) {
var fileTokens = picStrings[i].split('.');
var ext = fileTokens.pop();
var ext = fileTokens.pop().split('/')[0]; // handle cases; /file.ext or /file.ext/endpoint
if (supportedVideoFormats_.indexOf(ext) >= 0) {
picStrings[i] = '/static/maploom/assets/media-default.png';
}
Expand Down

0 comments on commit 0dfb70c

Please sign in to comment.