Skip to content

DOC: README.md Documentation link redirects to unsecure HTTP scheme #54089

Closed
@fgo

Description

@fgo

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://github.com/pandas-dev/pandas/blob/main/README.md

Documentation problem

In the Documentation section of the README.md, it links to https://pandas.pydata.org/pandas-docs/stable whilst this is follows the secure HTTPS scheme, when visiting the page, it 301 redirects to an unsecure HTTP scheme.

$ curl -I https://pandas.pydata.org/pandas-docs/stable

HTTP/2 301
date: Tue, 11 Jul 2023 20:07:41 GMT
content-type: text/html
location: http://pandas.pydata.org/pandas-docs/stable/
cf-cache-status: DYNAMIC
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=UwtlgjuOm6fYUMmVtQhFThXIkZeZmMxMFxU46TGPcx%2FpTk0wCg%2BLBMZlzuy82PZZ%2BWImUFtxow3Db%2BtHeCcJCbywLxBJLutemG%2BdCNf8%2BOzi%2F99ZJi9xAVsIC9H7T1UeKEcE"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 7e53ac956e5823f5-LHR

However, if you visit https://pandas.pydata.org/pandas-docs/stable/ with a trailing / it renders the secure page.

$ curl -I https://pandas.pydata.org/pandas-docs/stable/

HTTP/2 200
date: Tue, 11 Jul 2023 20:15:57 GMT
content-type: text/html
last-modified: Sat, 01 Jul 2023 08:28:13 GMT
cf-cache-status: DYNAMIC
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=ftEfEVbg4CZYpnCCZ%2BGXZSaWuBss%2FqwePL65cMGg7pbbtLZ2bAobJXlPzHjNhJkYQtpFj%2FPX1F8MysxfYOwa93U7I40bwdohUE5aEVf55fEazChFNJE2gqov71RrElzp4JnF"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 7e53b8adc9e1772c-LHR

Suggested fix for documentation

As a first step, @nabdoni and I thought of updating the README.md to hide the URL in documentation link which points to https://pandas.pydata.org/pandas-docs/stable/ and to raise another issue to investigate the Cloudflare endpoint routing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocsNeeds TriageIssue that has not been reviewed by a pandas team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions