+
Skip to content

running from a sub-directory of the webroot #1663

@xkcd386at

Description

@xkcd386at

Describe the bug

Trying to run the version from the zip file in releases using python -m http.server, it does not load unless the index.html is in the root of the webserver.

What happened?

DETAILS:

Trying to run the version from the zip file in releases using python -m http.server:

  • works fine if you cd dist before running the web server
  • fails if you run it from the parent directory

WORKAROUND:

I can kinda make it work if I remove the leading / in 3 lines (one src and two href) near the bottom, but I'm not sure if that is the right way.

Would be nice if it would run regardless of how deep in the directory tree it was placed.

System information

latest version from ZIP file in release, running on ubuntu using python's http.server module

Where did you encounter the bug?

Public app (it-tools.tech)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriage

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载