mirror of
https://github.com/wahyd4/links.git
synced 2026-08-08 21:04:53 +10:00
- link_form: template builder under the URL field — preset param chips
(q/id/page/category/keyword/lang, CN labels) click to insert ?q={q} with
smart ?/& separators; auto-parsed parameter rows (name + default input +
remove); custom params (name + default -> append); live dark preview
filling defaults (green) and flagging required (red); chips grey out
when used; hidden on Custom/Action tabs; edits existing templates
- redirect_to_original: map GET query params (?q=weather) by name into
template placeholders, keep path-param backward compat (go/alias/x
fills every unfilled param), defaults otherwise; query wins over path
- tests: +5 template redirect cases (query map, multi-param, defaults,
path compat, query-over-path)