Issue #2199427 by Aron Novak, nagy.balint: Fixed Gallery cannot load theme javascript file on multilanguage site with prefix.