Fix named routes and add integration test for layout links