Smarter redirect to newly created document