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

update redirects to address some 404s from GSC #1525

Merged
merged 5 commits into from
Jul 25, 2024
Merged

Conversation

kenjenkins
Copy link
Contributor

@kenjenkins kenjenkins commented Jul 16, 2024

We found a few reference setting 404s from the Google Search Console report. I don't think we have any logs from Netlify (which might be able to help us infer whether any real users are hitting these), but I thought it would make sense to add redirects for these.

Related issue:

Copy link

netlify bot commented Jul 16, 2024

Deploy Preview for pomerium-docs ready!

Name Link
🔨 Latest commit 1085439
🔍 Latest deploy log https://app.netlify.com/sites/pomerium-docs/deploys/66a2ae1c2c7a4500088d1ca8
😎 Deploy Preview https://deploy-preview-1525--pomerium-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ZPain8464
Copy link
Contributor

This PR is related to https://github.com/pomerium/internal/issues/1841

@ZPain8464
Copy link
Contributor

ZPain8464 commented Jul 17, 2024

@kenjenkins the production-deploy redirect with a 410 status code appended does behave as expected in that the response includes a 410, but it doesn't redirect to the /docs page; it just behaves like a 404 page. I've removed the 410 status code to see if it redirects as expected.

SCR-20240717-jedp

@kenjenkins
Copy link
Contributor Author

@kenjenkins the production-deploy redirect with a 410 status code appended does behave as expected in that the response includes a 410, but it doesn't redirect to the /docs page; it just behaves like a 404 page. I've removed the 410 status code to see if it redirects as expected.

410 Gone isn't a redirect. It's used to signal that a page has been intentionally and permanently removed.

/docs/reference/policy/allowed-users https://0-14-0.docs.pomerium.com/reference
/docs/reference/policy/allowed-domains https://0-14-0.docs.pomerium.com/reference/#allowed-domains
/docs/reference/policy/allowed-idp-claims https://0-14-0.docs.pomerium.com/reference/#allowed-idp-claims
/docs/reference/policy/allowed-groups https://0-14-0.docs.pomerium.com/reference/#allowed-groups
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure whether it's worth adding this one (v0.14 was a long time ago), but I thought it might make sense to be consistent with the others. (And if we have them, I figured it made sense to add anchor tags so they link to the relevant section heading.)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree for the sake of consistency, too. It can't hurt.

/docs/reference/policy/policy https://0-14-0.docs.pomerium.com/reference

# Link from v23 to v22
/docs/reference/routes/headers#set-authorization-header https://0-22-0.docs.pomerium.com/reference/routes/headers#set-authorization-header
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this redirect will never trigger, because of the #set-authorization-header fragment on the source URL. (The fragment isn't part of the request sent to the server, so we can't issue a redirect based on it.) I figured we should just remove this line.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, that makes sense. If that's the behavior of the request, then this redirect is pointless to keep.

@ZPain8464
Copy link
Contributor

@kenjenkins I'd like to resolve this PR today if possible. I think this addresses all the important 404ing links for now.

@kenjenkins kenjenkins marked this pull request as ready for review July 25, 2024 19:57
@kenjenkins kenjenkins requested a review from a team as a code owner July 25, 2024 19:57
@kenjenkins kenjenkins requested review from cmo-pomerium and removed request for a team July 25, 2024 19:57
@ZPain8464 ZPain8464 merged commit d61e7a7 into main Jul 25, 2024
8 checks passed
@ZPain8464 ZPain8464 deleted the kenjenkins/redirects branch July 25, 2024 20:14
backport-actions-token bot pushed a commit that referenced this pull request Jul 25, 2024
* update redirects to address some 404s from GSC

* fixes links in spreadsheet up to line 119

* adds 410 status, fixes links

* remove some extra blank lines

---------

Co-authored-by: zachary painter <60552605+ZPain8464@users.noreply.github.com>
ZPain8464 added a commit that referenced this pull request Jul 25, 2024
update redirects to address some 404s from GSC (#1525)

* update redirects to address some 404s from GSC

* fixes links in spreadsheet up to line 119

* adds 410 status, fixes links

* remove some extra blank lines

---------

Co-authored-by: Kenneth Jenkins <51246568+kenjenkins@users.noreply.github.com>
Co-authored-by: zachary painter <60552605+ZPain8464@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants