# Subfolder install User blocked due to community flags message has wrong URL to Profile

**URL:** <https://meta.discourse.org/t/subfolder-install-user-blocked-due-to-community-flags-message-has-wrong-url-to-profile/36685>\
**Category:** Bug\
**Created:** [14 Diciembre, 2015 14:12 UTC](https://meta.discourse.org/t/subfolder-install-user-blocked-due-to-community-flags-message-has-wrong-url-to-profile/36685 "2015-12-14T14:12:42Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [14 Diciembre, 2015 14:12 UTC](https://meta.discourse.org/t/subfolder-install-user-blocked-due-to-community-flags-message-has-wrong-url-to-profile/36685/1 "2015-12-14T14:12:42Z")

</div>

In the below message, the first and last link has /community/community/ referencing the subfolder name twice creating a broken link. The last link should be going to /community/admin/users/meghaf, and the first to /community/users/meghaf

> [@On another topic](https://meta.discourse.org/t/209903/1):
>
> This is an automated message.
> 
> The new user [meghaf](https://www.mydomain.com/community/community/users/meghaf) was automatically blocked because multiple users flagged meghaf’s post(s).
> 
> Please [review the flags](https://www.mydomain.com/community/admin/flags). If meghaf was incorrectly blocked from posting, click the unblock button on [the admin page for this user](https://www.mydomain.com/community/community/users/meghaf).
> 
> This threshold can be changed via the `block_new_user` site settings.

The above issue began for our community around November 12th, which is when we moved to a sub-folder install. Messages prior to that date work correctly.

I’ve dug into it enough to know this is from an email template, but I didn’t dig far enough to see how %{base\_url} and %{user\_url} are being set.

---

_[View the full topic](https://meta.discourse.org/t/subfolder-install-user-blocked-due-to-community-flags-message-has-wrong-url-to-profile/36685)._
