Added handling of /capture/<mode> URLs.