Skip to content

Redirect all 404s to the root of the site#755

Merged
jetstack-bot merged 1 commit intocert-manager:masterfrom
SgtCoDFish:redir404
Nov 10, 2021
Merged

Redirect all 404s to the root of the site#755
jetstack-bot merged 1 commit intocert-manager:masterfrom
SgtCoDFish:redir404

Conversation

@SgtCoDFish
Copy link
Member

@SgtCoDFish SgtCoDFish commented Nov 10, 2021

I think this is required because the theme we use uses relative links for CSS files, which break if the 404 page isn't served from the root.

Currently a 404 on the root looks vaguely correct while a 404 under /docs looks totally broken. This should hopefully fix that.

This line was taken from the hugo docs. The netlify docs seem to contradict and suggest that this line is not needed, but I think it's only not needed if the 404 page uses absolute paths.

/kind cleanup

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
@jetstack-bot jetstack-bot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Nov 10, 2021
@netlify
Copy link

netlify bot commented Nov 10, 2021

✔️ Deploy Preview for cert-manager-website ready!

🔨 Explore the source changes: d7e8f9e

🔍 Inspect the deploy log: https://app.netlify.com/sites/cert-manager-website/deploys/618be11ed17bac00072c8521

😎 Browse the preview: https://deploy-preview-755--cert-manager-website.netlify.app

@jetstack-bot jetstack-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 10, 2021
@irbekrm
Copy link
Contributor

irbekrm commented Nov 10, 2021

Looks good, I think there's no other way to prove for sure than to try it 😄

/lgtm
/approve

@jetstack-bot jetstack-bot added the lgtm Indicates that a PR is ready to be merged. label Nov 10, 2021
@jetstack-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: irbekrm, SgtCoDFish

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jetstack-bot jetstack-bot merged commit 7a565f3 into cert-manager:master Nov 10, 2021
@SgtCoDFish SgtCoDFish deleted the redir404 branch November 10, 2021 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants