<p></p>
<p dir="auto">We currently have a few "error" pages, including from the errors_controller but also other pages like site_controller/offline. To show these pages, users typically go through this flow:</p>
<ul dir="auto">
<li>Attempt to view page A</li>
<li>Something in A triggers an error</li>
<li>User receives a redirect to the error page B</li>
<li>User views the error on page B</li>
</ul>
<p dir="auto">It's not clear to me what advantage, if any, there is being redirected. The alternative would be that when an error (or similar) is reached in the controller, it renders the error page from a shared template. That avoids having any redirects, and it avoids changing the URL. For example, if you find a page that triggers a 500 internal server error, your can copy the link into the bug report more easily <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji></p>
<p dir="auto">I haven't come across any other sites that follow this redirect-to-error-page approach. I'm curious as to whether this is deliberate or whether it's just happened this way over for historical reasons.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/3876">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLM2NKP2WV6REZPBJDLWRAN7ZANCNFSM6AAAAAATTC4T7I">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLONGBKG3Q2K7TI3J6DWRAN7ZA5CNFSM6AAAAAATTC4T7KWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHFVQJTEI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/3876</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/3876",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/3876",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>