Fix behavior of "Request docs changes" link on 404 page

This commit is contained in:
Prashant 2017-04-20 01:16:47 +05:30 committed by Misty Stanley-Jones
parent b656513b9f
commit 92fb800ccd
1 changed files with 12 additions and 0 deletions

View File

@ -9,6 +9,8 @@
else %}{% assign edit_url = "" %}{% endif %} {% break %} {% endif %} {% endfor %}
<!-- End of logic for 'edit this button' -->
<!DOCTYPE html>
<html lang="en">
@ -189,6 +191,16 @@ else %}{% assign edit_url = "" %}{% endif %} {% break %} {% endif %} {% endfor %
</div>
</div>
{% if page.path == "404.md" %}
<script type="text/javascript">
var path = window.location.pathname.replace("#","");
var ghIssueQueryString = "https://github.com/docker/docker.github.io/issues/new?" + "title=404%20at%20" + path + "&body=URL%3A%20" + path;
document.getElementsByClassName("nomunge")[1].onclick = function() {
document.getElementsByClassName("nomunge")[1].href = ghIssueQueryString;
return true;
};
</script>
{% endif %}
<footer class="footer">
{% include footer.html %}
</footer>