Bugfix: account for url prefix when linking to app root.