League-of-Foundry-Developers / torch

Simple torch module for Foundry VTT
10 stars 16 forks source link

Account for running foundry at a sub path #34

Closed MrPrimate closed 1 year ago

MrPrimate commented 1 year ago

If Foundry is running at a subpath then the modules/torch/sources.json won't load as the fetch assumes Foundry is running at root. This was the cause of the problems I experienced in #23

e.g. I run my game at https://mydnd-game.example.om/foundry so the file should be fetched from https://mydnd-game.example.om/foundry/modules/torch/sources.json but the initial slash in the fetch results in an attempt from https://mydnd-game.example.om/modules/torch/sources.json which fails.

lupestro commented 1 year ago

Ah, okay, I’ll look into this and adjust accordingly. Thanks for doing the legwork. I love it when i get PRs.

lupestro commented 1 year ago

Thanks! Double-checked it tonight. Looks good. I'll get a release out in the morning.