snap-utils-0.1.2: Snap Framework utilities.

Safe HaskellNone

Snap.Utils.TargetPage

Synopsis

Documentation

deferFromTargetPage :: MonadSnap m => Text -> URL -> m aSource

Defer the target-page

deferFromTargetPage' :: MonadSnap m => Text -> URL -> URL -> m aSource

If redirecting from a POST action, the POST action wasn't the target. The referrer was. Just pass the target-url in directly instead of grabbing it from the request.