# "Oops" error when clicking email link to authorize email address change

**URL:** https://meta.discourse.org/t/oops-error-when-clicking-email-link-to-authorize-email-address-change/152445
**Category:** Support
**Created:** [May 23, 2020, 1:56pm UTC](https://meta.discourse.org/t/oops-error-when-clicking-email-link-to-authorize-email-address-change/152445 "2020-05-23T13:56:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [May 23, 2020, 1:56pm UTC](https://meta.discourse.org/t/oops-error-when-clicking-email-link-to-authorize-email-address-change/152445/1 "2020-05-23T13:56:13Z")

</div>

When attempting to change the email address associated with an account, the user is emailed a link of the form `https://[domain]/u/authorize-email/[some token]`. When clicking on that link, the forum displays an error message “Oops! That page doesn’t exist or is private.”

From `production.log`:

```plaintext
Started GET "/u/authorize-email/[redacted]" for [redacted] at 2020-05-23 13:55:06 +0000
ActionController::RoutingError (No route matches [GET] "/u/authorize-email/[redacted]")
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.3/lib/action_dispatch/middleware/debug_exceptions.rb:36:in `call'
  Rendering exceptions/not_found.html.erb within layouts/no_ember
  Rendered exceptions/not_found.html.erb within layouts/no_ember (Duration: 1.0ms | Allocations: 517)
  Rendered layouts/_head.html.erb (Duration: 2.6ms | Allocations: 428)
  Rendered common/_discourse_stylesheet.html.erb (Duration: 1.7ms | Allocations: 665)
  Rendered application/_header.html.erb (Duration: 0.3ms | Allocations: 74)
  Rendering html template
  Rendered html template (Duration: 0.0ms | Allocations: 2)

```

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [May 23, 2020, 2:22pm UTC](https://meta.discourse.org/t/oops-error-when-clicking-email-link-to-authorize-email-address-change/152445/2 "2020-05-23T14:22:37Z")

</div>

> [@Confirmation email link (after change) is broken ("Oops!") due to bad email customization](https://meta.discourse.org/t/confirmation-email-link-after-change-is-broken-oops-due-to-bad-email-customization/140135/5):
>
> You probably customized that email before we changed the link. Please go to /admin/customize/email\_templates/user\_notifications.confirm\_new\_email and make sure that link in there looks like %{base\_url}/u/confirm-new-email/%{email\_token} instead of %{base\_url}/u/authorize-email/%{email\_token} It might be a good idea to add a migration after all. This came up multiple times already. cc @sam

---

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [May 23, 2020, 3:36pm UTC](https://meta.discourse.org/t/oops-error-when-clicking-email-link-to-authorize-email-address-change/152445/3 "2020-05-23T15:36:34Z")

</div>

Thanks @gerhard 👍

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [June 22, 2020, 3:49pm UTC](https://meta.discourse.org/t/oops-error-when-clicking-email-link-to-authorize-email-address-change/152445/4 "2020-06-22T15:49:44Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
