fix - cancel confirm dialog when redirect on /document/:slug

Signed-off-by: Thibaud Arnault <thyb@oauth.io>