-
Notifications
You must be signed in to change notification settings - Fork 4
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
[Bug]: The "open" and "closed" did not navigate properly. #104
Comments
yes |
That's an odd bug, I'll look into it later. I suspect it's fixed in 1.0.0-alpha.1 since that section has been rewritten. |
ok |
So far I haven't been able to reproduce this in testing. Do you have some sort unusual environment that might be causing some confusion? |
I tested it. When I only use modmail-viewer, there will be no problems. But when I use nginx reverse proxy before modmail-viewer, problems will arise. The nginx configuration is as follows:
|
I've started using Cloudflare for reverse proxy, and the problem is now solved 😂. |
I'm reasonably sure this is an nginx configuration issue then. Unfortunately I'm not sure what the correct configuration would be for proxying, but at least the issues solved for you. |
That said there's more I can do on my end to improve handling of this issue. |
Is there an existing issue for this?
Version
v0.6.4
In which part of the application does the error occur?
Frontend
Current Behavior
Opening will redirect to http://127.0.0.1:3000/?status=open
Closing will redirect to http://127.0.0.1:3000/?status=closed
Expected Behavior
Opening will redirect to https://mysite.com/?status=open
Closing will redirect to https://mysite.com/?status=closed
Steps To Reproduce
docker:
docker run --name modmail-viewer -p 3000:80
--env "MODMAIL_VIEWER_MONGODB_URI="
--env "MODMAIL_VIEWER_URL=https://mysite.com"
--env "MODMAIL_VIEWER_DISCORD_OAUTH_CLIENT_ID="
--env "MODMAIL_VIEWER_DISCORD_OAUTH_CLIENT_SECRET="
--env "MODMAIL_VIEWER_DISCORD_GUILD_ID="
--env "MODMAIL_VIEWER_SECRETKEY=***"
-d ghcr.io/khakers/modmail-viewer:latest
Environment
Relevant log output
No response
The text was updated successfully, but these errors were encountered: