# Relative\_url\_root issues – incorrect "Latest" link, incorrect redirect

**URL:** <https://meta.discourse.org/t/relative-url-root-issues-incorrect-latest-link-incorrect-redirect/163266>\
**Category:** Bug\
**Created:** [September 7, 2020, 2:57pm UTC](https://meta.discourse.org/t/relative-url-root-issues-incorrect-latest-link-incorrect-redirect/163266 "2020-09-07T14:57:49Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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 16, 2020, 2:50pm UTC](https://meta.discourse.org/t/relative-url-root-issues-incorrect-latest-link-incorrect-redirect/163266/8 "2020-09-16T14:50:07Z")

</div>

Thanks, Arpit. These people (whose installation I’m not managing) are on 2.5.0. Can you help me understand where `confirm_admin_url` gets defined so that I can confirm that it’s a bug in their version of Discourse?

> [@Subfolder install: admin email confirmation url has subfolder duplicated](https://meta.discourse.org/t/subfolder-install-admin-email-confirmation-url-has-subfolder-duplicated/163749):
>
> 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 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).

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

Thanks.

---

_[View the full topic](https://meta.discourse.org/t/relative-url-root-issues-incorrect-latest-link-incorrect-redirect/163266)._
