Skip to main content

get_last_path

Function get_last_path 

Source
pub async fn get_last_path(user_id: i64) -> Result<Option<String>, Error>
Expand description

gaps2 #11 round 2 — read the “last viewed admin URL” for user_id. Used by the admin index handler to redirect /admin/ → the user’s last working changelist.

Returns None when no prefs row yet, when preferences.last_path is missing, or when the value isn’t a string.