Argonius-Angelus / lancer-clocks

A module that lets you create Lancer-themed progress clocks as seen in No Room For a Wallflower Act 1 (https://massif-press.itch.io/no-room-for-a-wallflower-act-1) within Foundry VTT (https://foundryvtt.com/). This is a modification of the original Blades in the Dark-esque progress clocks (https://foundryvtt.com/packages/clocks/) made by troygoode.
MIT License
3 stars 4 forks source link

Support for routeprefix Foundry servers #7

Closed runedevros closed 1 year ago

runedevros commented 1 year ago

For the purposes of this bug report, my server is hosted at https://example.com. My Foundry instance is served with a routeprefix of "foundry", so my Foundry instance is accessed at: https://example.com/foundry/

The clocks module does not read the routeprefix correctly and attempts to load resources from the base URL, so none of the images load properly.

Steps to reproduce:

  1. Set up a Foundry server with a routeprefix.
  2. Start a world
  3. Create an actor
  4. Set the actor to use the clock actor sheet.

Expected Behavior: The clock images should be loaded from the correct URL with routeprefix.

Observed Behavior: Attempting to load the clock images returns a 404 error.

The module attempts to load: https://example.com/modules/progress-clocks/themes/wallflower_green/2clock_0.png The correct URL is: https://example.com/foundry/modules/progress-clocks/themes/wallflower_green/2clock_0.png

image

Thanks in advance.

Argonius-Angelus commented 1 year ago

I have pushed an update which fixes a similar issue for Linux distros. Let me know if this also fixes things for you.

runedevros commented 1 year ago

image

Seems to be working now. Thanks for the fix!