Client-side path rewrite failing with subfolder setup

This looks to be the way indeed, thanks for the investigation and bug report. This PR should fix it:

https://github.com/discourse/discourse/pull/12135

Can you give it a try @renato ?

2 Likes