Skip to content

Commit

Permalink
Fix #1128 by reinstating the fb_ml_road_url param - purely for debug …
Browse files Browse the repository at this point in the history
…purposes.
  • Loading branch information
Bonkles committed Jan 26, 2024
1 parent 08dee0f commit a9c4291
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/services/MapWithAIService.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { Tiler } from '@rapid-sdk/math';

import { AbstractSystem } from '../core/AbstractSystem';
import { Graph, Tree } from '../core/lib';
import { utilStringQs } from '@rapid-sdk/util';

import { osmEntity, osmNode, osmWay } from '../osm';
import { utilFetchResponse } from '../util';

Expand Down Expand Up @@ -260,7 +262,10 @@ export class MapWithAIService extends AbstractSystem {
qs.crop_bbox = taskExtent.toParam();
}

const url = APIROOT + '?' + mapwithaiQsString(qs, true); // true = noencode
const customUrlRoot = utilStringQs(window.location.hash).fb_ml_road_url;

const urlRoot = customUrlRoot || APIROOT;
const url = urlRoot + '?' + mapwithaiQsString(qs, true); // true = noencode
return url;


Expand Down

0 comments on commit a9c4291

Please sign in to comment.