Redirect to root path if splash is not public

this fixes #309 . @differentreality please check is this you wanted.
if you did add the flash for redirection, it is better to test it as well in separate example