Commit Graph

6 Commits

Author SHA1 Message Date
Cameron Pak
9008f9c6a3 fix: normalize admin basepath to prevent double slashes in URLs
Strip trailing slashes from adminBasepath in AdminController window context
and wouter Router base to prevent paths like /admin//data when users
configure adminBasepath with a trailing slash.

Amp-Thread-ID: https://ampcode.com/threads/T-019ca537-4cc4-7174-bf9a-5325d782f097
Co-authored-by: Amp <amp@ampcode.com>
2026-02-28 11:11:44 -06:00
cameronapak
d00e5fe68c Remove redundant basepath option 2025-12-30 07:34:00 -06:00
cameronapak
19e51fae63 Refactor AppReduced to use basepath config option
The `admin_basepath` configuration option has been renamed to `basepath`
for clarity and consistency. This change affects how the admin base path
is accessed and utilized within the `AppReduced` utility. Tests have
been updated to reflect this renaming.
2025-12-30 07:09:00 -06:00
dswbx
2fb07698d5 fixing AppReduced.spec.ts 2025-08-03 13:10:49 +02:00
cameronapak
7b86611f35 bun run format 2025-07-22 08:58:30 -05:00
cameronapak
12ef72d595 test: add comprehensive tests for AppReduced utility and path normalization 2025-07-22 08:52:32 -05:00