---
title: Page not found
jumbotron: credits
layout: default
permalink: 404.html
---

<section class="section">
  <div class="container">
    <div class="content">

      <div class="columns is-centered">
        <div class="column is-6">
          <div class="has-text-centered">
            <img
              src="{{ '/media/unknown_node.jpg' | relative_url }}"
              alt="Unknown node"
            >

            <h2>Sorry, we could not find that page!</h2>
            <p>
              <a href="{{ '/' | relative_url }}" class="has-text-weight-bold">Go to the homepage</a>
            </p>
            <p>
              Please report any broken links on the
              <a href="https://github.com/minetest/minetest.github.io/issues">
                issues page for this website</a>.
            </p>
          </div>
        </div>
      </div>

    </div>
  </div>
</section>

---
title: Page not found
jumbotron: credits
layout: default
permalink: 404.html
---

<script>
  // Forum URL redirection
  const urlParams = new URLSearchParams(window.location.search.slice(1));

  if (urlParams.has('id')) {
    // Convert to a number for security (only numeric values make sense anyway)
    const topicId = Number(urlParams.get('id'));
    window.location.replace(`https://forum.minetest.net/viewtopic.php?id=${topicId}`);
  }
</script>

<section class="section">
  <div class="container">
    <div class="content">

      <div class="columns is-centered">
        <div class="column is-6">
          <div class="has-text-centered">
            <img
              src="{{ '/media/unknown_node.jpg' | relative_url }}"
              alt="Unknown node"
            >

            <h2>Sorry, we could not find that page!</h2>
            <p>
              <a href="{{ '/' | relative_url }}" class="has-text-weight-bold">Go to the homepage</a>
            </p>
            <p>
              Please report any broken links on the
              <a href="https://github.com/minetest/minetest.github.io/issues">
                issues page for this website</a>.
            </p>
          </div>
        </div>
      </div>

    </div>
  </div>
</section>

Add a forum redirection page
Add a forum redirection page

This is done in the 404 error page as it will match any invalid URL,
including `/forum/viewtopic.php`. We can't create a page with a custom
permalink set to `/forum/viewtopic.php`, as GitHub Pages doesn't set
the MIME type correctly, which causes the browser to download the page.

This closes #187.
