Skip to content
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

urls of pagination are incorrect with APP_URL & APP_FORCE_URL set #7452

Open
3 tasks done
ChenLuoi opened this issue Nov 7, 2024 · 0 comments
Open
3 tasks done

urls of pagination are incorrect with APP_URL & APP_FORCE_URL set #7452

ChenLuoi opened this issue Nov 7, 2024 · 0 comments
Labels

Comments

@ChenLuoi
Copy link

ChenLuoi commented Nov 7, 2024

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • I agree to follow Monica's Code of Conduct.

Bug description

paginator info is incorrect as expect

Steps to reproduce

  1. Deploy monica-appach by docker, with APP_URL=https://example.com and APP_FORCE_URL=true;
  2. access the monica site behide nginx, which provide ssl use proxy_pass;
  3. "Activity in this vault", click button "Load previous entries" to load more data at bottom, the http request like (/vaults/9d6e33f4-1d9f-4021-b919-5c50107d37f9/feed);
  4. look at the result of the http request, pagination info in paginator is incorrect, with location.origin is http://example.com;
  5. apparently, no more data can be loaded.

Expected behavior

The paginator results are correct as expected, use APP_URL as base origin

Environment

Your own self-hosted instance (v5 a.k.a chandler version or main branch)

Version of Monica

a809ecb

Installation method

Docker image

Web server

Nginx

Database engine version

PostgreSQL

Additional info

No response

@ChenLuoi ChenLuoi added the bug label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant