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

Add two new fields to redirect export #88

Merged
merged 1 commit into from
Nov 9, 2023
Merged

Conversation

chosak
Copy link
Member

@chosak chosak commented Nov 9, 2023

This change adds two new boolean fields to the redirect data available as a CSV download or via the API:

  • is_http_to_https: true if the redirect is only from an http:// URL to the equivalent https:// URL.
  • is_append_slash: true if the redirect is only from a URL to the same URL with a trailing slash appended.

To test, visit http://localhost:8000/redirects/?format=api to browse the API or http://localhost:8000/redirects/?format=csv download redirect data as a CSV.

This change adds two new boolean fields to the redirect data available
as a CSV download or via the API:

- is_http_to_https: true if the redirect is only from an http:// URL to
the equivalent https:// URL.
- is_append_slash: true if the redirect is only from a URL to the same
URL with a trailing slash appended.

To test, visit http://localhost:8000/redirects/?format=api to browse
the API or http://localhost:8000/redirects/?format=csv download
redirect data as a CSV.
@chosak chosak merged commit 7b8b1e7 into main Nov 9, 2023
4 checks passed
@chosak chosak deleted the feature/redirect-fields branch November 9, 2023 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant