beefy icon indicating copy to clipboard operation
beefy copied to clipboard

Serving folders with index.html breaks if you don't add "/" at the end

Open mourner opened this issue 11 years ago • 2 comments

I was banging my head around this issue for quite a while. If you serve some /folder with beefy (which has an index.html) and load it as localhost:9966/folder, the asset references inside will be recognized as relative to localhost:9966, not localhost:9966/folder. If you load the page as localhost:9966/folder/, it will work fine. Beefy needs to handle folders regardless of the slash at the end.

mourner avatar Mar 31 '14 22:03 mourner

Any comments?

mourner avatar Apr 11 '14 13:04 mourner

I'll add a test to the beefy2 branch. Thanks for the report, sorry for the long delay in response!

chrisdickinson avatar Apr 26 '14 23:04 chrisdickinson