| 03:39 | * | natewrench123456 has joined |
| 03:40 | * | natewrench123456 has quit (Quit: Leaving) |
| 11:23 | mstenta[m] | <symbioquine[m]> "Maybe something's wrong with how..." <- symbioquine paul121 : ah ha! i figured this one out... |
| 11:23 | mstenta[m] | This is what we have now: `new URL('/assets/geojson/' + geomType + '/' + assetType, window.location.origin + drupalSettings.path.baseUrl);` |
| 11:24 | mstenta[m] | If I remove the leading `/` from that, then it works correctly in a subdirectory. |
| 11:24 | mstenta[m] | eg: `new URL('assets/geojson/' + geomType + '/' + assetType, window.location.origin + drupalSettings.path.baseUrl);` |
| 11:25 | mstenta[m] | Here's the explanation from MDN's `URL()` docs: |
| 11:25 | mstenta[m] | > The constructor takes a `url` parameter, and an optional `base` parameter to use as a base if the `url` parameter is a relative URL |
| 11:25 | mstenta[m] | developer.mozilla.org/en-US/docs/Web/API |
| 11:26 | mstenta[m] | We are passing the optional `base` parameter, but we are using an absolute `url` |
| 11:26 | mstenta[m] | TIL! |
| 15:26 | paul121[m] | Ooooh! Interesting. Easy fix |
| 15:43 | symbioquine[m] | Hah! Nice! 😁 |
| 21:51 | * | sgoodall has quit (Ping timeout: 252 seconds) |
| 21:53 | * | sgoodall has joined |