Fix translation in subdirectories

Translation in subdirectories is broken because it tries to load it from a relative url.