Fixes #2724: consistent use of absolute and relative routes.