<p dir="auto"><code class="notranslate">link_to</code> can often be simplified by passing to it just an object instead of a path or a controller name. This may help with refactoring. The simplification can be done in many other places in addition to what's in this PR, but just in case I'll do it in small steps, at least until <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2189654032" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4581" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/4581/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/4581">#4581</a> is merged.</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/4582'>https://github.com/openstreetmap/openstreetmap-website/pull/4582</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4582/commits/927cc9f45e6626e2a82403d1263b4a16d601e30b" class="commit-link">927cc9f</a>  Don't pass paths to element_single_current_link helper</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4582/files">3 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4582/files#diff-32118282fc2a82b607c0052b4a7bf90a81869cfae973c63e9552534800c14525">app/helpers/browse_helper.rb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4582/files#diff-4fb209e1518412e2973595864ca7f3d7f28918d3cca5ba526ff8218e32831ec1">app/views/browse/_node.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4582/files#diff-8c78c1473ce35a2d299cdb33424bfba90d9ae2f4bf962d20805865a8cfe13431">app/views/browse/_way.html.erb</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4582.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4582.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4582.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4582.diff</a></li>
</ul>

<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/pull/4582">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLL2L36BCNRFFCN4453YYOSUNAVCNFSM6AAAAABEY5NEQ6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGE4DSNRZG42DCOA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMYCWXZ5U2SNALVB53YYOSUNA5CNFSM6AAAAABEY5NEQ6WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHIFBBBRI.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/pull/4582</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/pull/4582",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4582",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>