httpnav

package
v0.1.36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

pantry/httpnav/back.go

pantry/httpnav/httpnav.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentPath

func CurrentPath(r *http.Request) string

func HasExplicitReturn

func HasExplicitReturn(r *http.Request) bool

func ResolveBackURL

func ResolveBackURL(r *http.Request, fallback string) string

ResolveBackURL returns a safe local back URL from ?return=, form return, or Referer. Fallback must be a local path (e.g., "/groups").

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL