Files
pages/internal/server/editor_path.go
T
Anya Tokugawa c1175d389f Implement Knowledge City platform, organizer and DAV integration
Capture accumulated application, UI, CLI, regression tests and design documentation changes, including task project mapping and default CalDAV list naming.

Keep deployment data, backups, local credentials and build artifacts out of Git. Move the Compose enrollment token to an ignored local environment file.
2026-09-27 14:44:43 +09:00

15 lines
348 B
Go

package server
import "strings"
// Both the compact /e/docs and the historic /e/-/docs edit /docs.
func semanticEditorPath(route string) string {
if route == "/e/-" || route == "/e/-/" {
return "/"
}
if strings.HasPrefix(route, "/e/-/") {
return "/" + strings.TrimPrefix(route, "/e/-/")
}
return "/" + strings.TrimPrefix(route, "/e/")
}