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

AI-generated summary

A bug was reported where automated “user blocked” emails in a Discourse subfolder installation generate incorrect profile URLs, duplicating the subfolder path (e.g., /community/community/users/...) cpradio. This issue, which began after moving to a subfolder install, affects both the user profile link and the admin user management link. codinghorror identified this as a valid subfolder bug. neil subsequently pushed a fix for the broken links and discovered an additional bug regarding account activation redirects, which was also resolved.

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

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.

3 Mi Piace

Looks like a valid subfolder bug @neil can you add it to your list?

1 Mi Piace

I pushed a fix for that. Also, while testing it I found a bug with account activation redirecting to the wrong url, so that’s fixed too. :bug:

4 Mi Piace