Files
docker-docs/404.md
Sebastiaan van Stijn 389f5d14d0 Move 404 script to 404 page, and improve link-generation
If we found a "referer" address, the body now contains the URL from which we
arrived at the 404. For example;

https://github.com/docker/docker.github.io/issues/new?title=404+at+%2Fnosuchpage&body=I+found+a+broken+link+%3A+https%3A%2F%2Fdocs.docker.com%2Fnosuchpage%0AI+arrived+on+this+page+through%3A+https%3A%2F%2Fdocs.docker.com%2Fregistry%2Fspec%2Fapi%2F

Which opens a new ticket:

    Title: 404 at /nosuchpage

    I found a broken link : https://docs.docker.com/nosuchpage
    I arrived on this page through: https://docs.docker.com/registry/spec/api/

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-09 01:12:03 +02:00

1.2 KiB

title, permalink, noratings, notoc, skip_read_time
title permalink noratings notoc skip_read_time
Sorry, we can't find that page /404.html true true true

There might be a mistake in the URL or you might've clicked a link to content that no longer exists. If you think it's the latter, please file an issue in our issue tracker on GitHub and let us know what happened. Please also include a link to where the error occurred, if applicable.

Click here to create a new ticket{:.newissue.button.primary-btn}

404 page not found

<script> let el = document.querySelector("a.newissue"); if (el) { let url = new URL("https://github.com/docker/docker.github.io/issues/new"); url.searchParams.set("title", "404 at " + window.location.pathname); let body = "I found a broken link : " + window.location.href; if (document.referrer !== "") { body += "\nI arrived on this page through: " + document.referrer } url.searchParams.set("body", body); el.setAttribute("href", url.toString()); } </script>