internetarchive / internetarchive/openlibrary

`http` protocol used at some point during human-readable slug redirects in lower environments

Open
#5,758 2 comments 0 reactions 0 assignees View on GitHub
Affects: Admin/Maintenance Lead: @cdrini Priority: 4 Type: Bug
Dominant language
Python
Stars
6.7k
Forks
2k
Avg merge
2d 19h
Merged PRs (30d)
138

Description

At some point during the URL rewriting process for works, redirects use `http` instead of `https` in both testing and staging environments.

### Evidence / Screenshot (if possible)
![image](https://user-images.githubusercontent.com/28732543/137547180-4cefdb66-430b-457c-9d46-af236f309794.png)

_Note the "Location" in the response headers._

### Relevant url?

Compare the redirects for the following URLs:

https://testing.openlibrary.org/authors/OL5017833A/foo
https://openlibrary.org/authors/OL5017833A/foo

### Steps to Reproduce

1. With the dev tools network tab open, go to https://testing.openlibrary.org/authors/OL5017833A/foo
2. Note that this redirects to an `http://` URL

* Actual: HTTP is used during redirects
* Expected: HTTPS is used during redirects

### Details

- **Logged in (Y/N)?** N/A
- **Browser type/version?** Firefox 92.0
- **Operating system?** N/A
- **Environment (prod/dev/local)?** testing and staging

### Proposal & Constraints

### Related files

### Stakeholders

@RayBB
@cdrini

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.