<p></p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/AntonKhorev/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/AntonKhorev">@AntonKhorev</a> I have tested <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1981216143" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4329" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/4329/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/4329">#4329</a> with <a href="https://osmlab.github.io/osm-auth/" rel="nofollow">osm-auth demo app</a>. I found out that you are correct that clicking a link in email does not close the window from which the email was originally triggered (2nd browser window appearing as a popup). Instead, it opens up the new tab in the default browser and continues the authorization process - if this is the same browser, and if it was clicked within a reasonable time. The final state is:</p>
<ul dir="auto">
<li>new user is registered with OSM</li>
<li>application is authorized with OSM</li>
<li>popup window displays "We have sent you confirmation email" page. It is not and cannot be closed by link in the confirmation email.</li>
<li>the browser tab opened by confirmation email does not work properly. Note that this page is hosted by the client app - in osm-auth's <code class="notranslate">land.html</code> in this example.</li>
</ul>
<p dir="auto">Similarly, in single page mode "We have sent you confirmation email" page stays untouched after user clicks the link in confirmation email, and the authorization is completed in the newly opened tab or window.</p>
<p dir="auto">In summary, I believe that <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1981216143" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4329" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/4329/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/4329">#4329</a> does not degrade UX in any scenario, but significantly improves it when confirmation email is not required, and in many cases when it is.</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/4246#issuecomment-1810887001">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPS2MZRY6FUIGL7YYDYEOZTTAVCNFSM6AAAAAA4WTGC3OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJQHA4DOMBQGE">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLNC2LIQUB2NOP756HDYEOZTTA5CNFSM6AAAAAA4WTGC3OWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTL57YVS.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/4246/1810887001</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/4246#issuecomment-1810887001",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/4246#issuecomment-1810887001",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>