From 5f81f7c179acca9801a487e71dae970914d8ce82 Mon Sep 17 00:00:00 2001 From: Zsolt Tasnadi Date: Tue, 28 Jul 2026 18:49:54 +0200 Subject: [PATCH] Fix web player base href: /file/-/ with trailing slash Without the trailing slash the browser resolves relative asset URLs (style.css, player.js) against /file/, producing 404s. Also switch the patch target from the obsolete /play/ scheme to the /file/ route the API actually serves. Co-Authored-By: Claude Fable 5 --- example-makefile.make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example-makefile.make b/example-makefile.make index 4c6f210..896697e 100644 --- a/example-makefile.make +++ b/example-makefile.make @@ -46,7 +46,7 @@ web: love @echo "==> Patching player.js" sed -i.bak "s|uri = 'nogame\.love'|uri = '$(LOVE_NAME)'|g" $(WEB_DIR)/player.js && rm $(WEB_DIR)/player.js.bak @echo "==> Patching index.html" - sed -i.bak 's|||g' $(WEB_DIR)/index.html && rm $(WEB_DIR)/index.html.bak + sed -i.bak 's|||g' $(WEB_DIR)/index.html && rm $(WEB_DIR)/index.html.bak @echo "==> Web build ready in $(WEB_DIR)" export: love web