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

https URLs redirect to http #718

Open
tomhughes opened this issue Sep 2, 2024 · 0 comments
Open

https URLs redirect to http #718

tomhughes opened this issue Sep 2, 2024 · 0 comments
Labels

Comments

@tomhughes
Copy link

Describe the bug
An https URL that redirects like https://arxiv.org/pdf/2308.16025.pdf will redirect to http://arxiv.org/pdf/2308.16025 losing the https and meaning that, for example, firefox will not automatically open the document without the user confirming it is safe.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://arxiv.org/pdf/2308.16025.pdf

Expected behavior
A redirect to https://arxiv.org/pdf/2308.16025

Additional context
I'm not sure if this is the right repo... I can see that

def redirect_pdf(arxiv_id: str, archive=None): # type: ignore
just asks flask to build the redirect URL so I guess it comes down to the flask config and I assume it thinks it is http because it's behind a proxy or load balancer of some sort that is terminating the https

Possibly it's down to

app.jinja_env.globals['canonical_url'] = canonical_url
in which case the issue is presumably in how https://github.com/arXiv/arxiv-base sets the canonical URL?

@tomhughes tomhughes added the bug label Sep 2, 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