fix(legal): fix rendering of legal pages when loaded directly via url

Fixes #1372.