Skip to content

Commit af90fa3

Browse files
Merge pull request #1170 from ethan-nelson/id-gpx
Spoof task outline gpx file extension for iD
2 parents 8a93a23 + 8f50564 commit af90fa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/app/services/editor.service.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
* @returns string - gpxUrl
156156
*/
157157
function getGPXUrl(projectId, taskIds, as_file){
158-
var gpxUrl = configService.tmAPI + '/project/' + projectId + '/tasks_as_gpx?tasks=' + taskIds + '&as_file='+(as_file?true:false);
158+
var gpxUrl = configService.tmAPI + '/project/' + projectId + '/tasks_as_gpx?tasks=' + taskIds + '&as_file='+(as_file?true:false) + '&filename=task.gpx';
159159
// If it is not a full path, then it must be relative and for the GPX callback to work it needs
160160
// a full URL so get the current host and append it
161161
// Check if it is a full URL

0 commit comments

Comments
 (0)