pub fn redirect_permanent(is_js_req: bool, location: &str) -> ResponseExpand description
Redirect helper for 308 (Permanent Redirect, preserves method). If X-CollectiveToolbox-IsJsRequest header is present, returns JSON with target URL and X-CollectiveToolbox-IsJsRedirect response header.