Skip to content

consider using relative url for href to work behind a proxy #233

@panlina

Description

@panlina

Hi,
I'm using ecstatic behind a proxy, something like proxying http://localhost/a to http://localhost:8080, where 8080 is the port ecstatic is listening to. The problem is that ecstatic uses absolute url for href, which resolves to a url where the file path is directly appended to the host part, instead of the current url.
For instance, when browsing from http://localhost/a, clicking folder f navigates to http://localhost/f/, instead of http://localhost/a/f/.
I noticed that there's a baseDir option, but it's irrelevant here since the base url(/a) is already eaten by the proxy before baseDir applies.
Using relative url for href may be a solution, but I'm not sure whether you are using absolute path for some reason. How do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions