Recline previews do not work when CKAN mounted on non-root URL

Recline previews don't work when CKAN is mounted on a non-root URL. I couldn't find anything particularly relevant on the console.