<p>This is one of my two solutions to the problem of the UI not presenting a clear way to return to the "view" page. I finally realized you can just click the logo, but this isn't very clear and I've seen several people online face the same issue. This solution works by adding a "View" tab to the main navigation menu. Here's an example of it working: <a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/42590338/68001467-8fa88700-fc3a-11e9-9dc2-629cbe515018.gif"><img src="https://user-images.githubusercontent.com/42590338/68001467-8fa88700-fc3a-11e9-9dc2-629cbe515018.gif" alt="viewtab" style="max-width:100%;"></a>.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/2420'>https://github.com/openstreetmap/openstreetmap-website/pull/2420</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Added "View" tab</li>
<li>Added "layouts.view"</li>
<li>Allow for JS updating of #view_tab</li>
<li>Remove .current from #view_tab on index page</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/2420/files#diff-0">app/assets/javascripts/index.js</a>
(5)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/2420/files#diff-1">app/views/layouts/_header.html.erb</a>
(3)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/2420/files#diff-2">config/locales/en.yml</a>
(1)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/2420.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/2420.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/2420.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/2420.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2420?email_source=notifications&email_token=AAK2OLJKYMM3E2AZGTKHRLLQROS5JA5CNFSM4JHV32K2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HV77YRA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLIP22Y2CCSQ7TF4UILQROS5JANCNFSM4JHV32KQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLMUA4VIJRCQFIYFLUTQROS5JA5CNFSM4JHV32K2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HV77YRA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2420?email_source=notifications\u0026email_token=AAK2OLJKYMM3E2AZGTKHRLLQROS5JA5CNFSM4JHV32K2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HV77YRA",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2420?email_source=notifications\u0026email_token=AAK2OLJKYMM3E2AZGTKHRLLQROS5JA5CNFSM4JHV32K2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HV77YRA",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>