Fixed app controller so that detail pages can again be deep-linked with a URL.