Correct link construction for production hosting

Fixes a problem in production hosting of an app server behind a proxy where the context-path, such as "/qu", is prefixed on HREFs for resources and pagination