fix routes for heroku subdomains
Merge branch 'hotfix_subdomain'