Giter Club home page Giter Club logo

Comments (3)

AshleyScirra avatar AshleyScirra commented on August 27, 2024 1

My own tests using a favicon work fine. <link rel="icon" href="icon.png"> fetches relative to the HTML page, which works on servefolder.dev.

I guess some origin-relative paths like /icon.png won't work. But I don't think there's a good solution to that case. The folder picker page needs to be somewhere, and the origin root seems to make sense; pages can be designed to use relative URLs which will work; and it's hard to see how multiple hosts could be supported that way. I've added a new descriptive section on limitations which covers that, so I think that's all to be done about this for now.

from servefolder.dev.

AshleyScirra avatar AshleyScirra commented on August 27, 2024

The host prefix shouldn't prevent serving an HTML file that refers to other files with relative paths. What do you mean by that? What is actually not working?

from servefolder.dev.

wey-gu avatar wey-gu commented on August 27, 2024

Sorry for the late response, not sure, if it's my incorrect understanding:

  • use servefolder.dev to browse foo/ with index.html and fav.png picture
  • the URL of index.html will go to servefolder.dev/host/index.html
  • the fav.png ref in index.html(hugo ssg site/page) is somehow actually servefolder.dev/fav.png instead of servefolder.dev/host/fav.png, thus it's broken.
    Thanks.

from servefolder.dev.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.