Part of WP-1575 Added code to support 'back' and 'cancel' links.