GetEditActivityBackPath
Function: getEditActivityBackPath()
[object Object]
Defined in: app/routes/edit-activity/edit-activity.handlers.tsx:63
Calculates the appropriate 'Back' navigation path based on the user's current context.
This utility ensures that administrators are returned to the admin dashboard, while standard members are returned to the public activity list or specific detail view.
Parameters
pathname
[object Object]
The current URL path from the window location.
isEdit
[object Object]
Whether the user is currently editing an existing activity.
id
string | undefined
The ID of the activity (used if returning from edit mode to detail view).
Returns
[object Object]
The relative URL string for navigation.