def redirect.sort.stay

emerging-ezhttp@0.21.0.0 · src/redirect.bend:198

import emerging-ezhttp@0.21.0.0/src/redirect.bend as Redirect
import Base

198# a reference that is not a path from the root: one the client stays on, or
199# a relative one
200def redirect.sort.stay(stay: Bool, query: Bool) -> Sort:
201  match stay:
202    case True{}:
203      Stay{}
204    case False{}:
205      redirect.sort.rel(query)

Uses (3)

Used by (1)