feat(normalsub): Implement flexible, path-based subscription URLs

Refactors the NormalSub feature to move away from a hardcoded `/sub/normal/` path and a restrictive single-word subpath. This change introduces support for multi-segment, slash-separated subpaths (e.g., `path/to/resource`), providing greater flexibility for creating descriptive and structured subscription URLs.
This commit is contained in:
ReturnFI
2025-11-29 20:22:22 +00:00
parent 5049209df5
commit 76472dfde5
9 changed files with 31 additions and 24 deletions

View File

@ -142,9 +142,13 @@
<div class='form-group'>
<label for='normal_subpath_input'>Subscription Path Segment:</label>
<input type='text' class='form-control' id='normal_subpath_input'
placeholder='e.g., mysub (becomes /mysub/...)'>
placeholder='e.g., mysub or path/to/resource'>
<small class="form-text text-muted">
This path will be part of the URL. Do not use a leading or trailing slash.
Example: <code>path/to/resource</code>
</small>
<div class="invalid-feedback">
Please enter a valid subpath (alphanumeric characters only, e.g., mysub).
Invalid format. Use alphanumeric segments separated by single slashes.
</div>
</div>
<button id="normal_subpath_save_btn" type='button' class='btn btn-primary'>