Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BASE_URL ignores path component #1182

Closed
nh2 opened this issue Jul 14, 2021 · 0 comments
Closed

BASE_URL ignores path component #1182

nh2 opened this issue Jul 14, 2021 · 0 comments

Comments

@nh2
Copy link
Contributor

nh2 commented Jul 14, 2021

Bug report

I'm trying to set BASE_URL=https://example.com/plausible, so that the root of Plausible starts at /plausible.

However, it does not work: Plausible redirects to https://example.com/login, outside of the BASE_URL.

I believe this is because Plausible completely ignores the .path component of the parsed URI:

url: [host: base_url.host, scheme: base_url.scheme, port: base_url.port],

Expected behavior

Plausible should respect the path component of the BASE_URL, so that it can run under a path that is not the domain root.

In #177 it was mentioned that Plausible strips query parameters after ?, but nowhere is it mentioned that it strips the /path, so I assume that this is accidental.

@plausible plausible locked and limited conversation to collaborators Jul 14, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants