# Subfolder install: admin email confirmation url has subfolder duplicated

**URL:** https://meta.discourse.org/t/subfolder-install-admin-email-confirmation-url-has-subfolder-duplicated/163749
**Category:** Bug
**Created:** [September 11, 2020, 4:10pm UTC](https://meta.discourse.org/t/subfolder-install-admin-email-confirmation-url-has-subfolder-duplicated/163749 "2020-09-11T16:10:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [September 11, 2020, 4:10pm UTC](https://meta.discourse.org/t/subfolder-install-admin-email-confirmation-url-has-subfolder-duplicated/163749/1 "2020-09-11T16:10:06Z")

</div>

This is on 2.5.0.

The admin confirmation URL in the email has subfolder duplicated. like  
`https://www.example.com/subfolder/subfolder/u/confirm-admin/key`.

I’m looking at

> <https://github.com/discourse/discourse/blob/main/app/mailers/admin_confirmation_mailer.rb#L12>

it appears to call something called `confirm_admin_url`, but I can’t find where that’s defined.

I’m not sure where to look to see if it’s a bug or some configuration issue (but this is the only place this problem is showing up).

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [September 16, 2020, 3:05pm UTC](https://meta.discourse.org/t/subfolder-install-admin-email-confirmation-url-has-subfolder-duplicated/163749/2 "2020-09-16T15:05:01Z")

</div>

I believe @neil fixed this (back in 2017) via:

[https://github.com/discourse/discourse/commit/bf00ab5d4a94e6bdfad363d18eb420100130178f](https://github.com/discourse/discourse/commit/bf00ab5d4a94e6bdfad363d18eb420100130178f)

I was not able to repro this locally though on latest version.
