mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5302] [Question]: mistake subJsonPath: pages.settings.validation.pathLeadingSlash #3714
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3714
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Flix790 on GitHub (Jun 13, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5302
What are you trying to do?
It does not allow you to save anything, an error always crashes
subJsonPath: pages.settings.validation.pathLeadingSlash
What have you already tried?
No response
3x-ui version
3.3.1
How did you install 3x-ui?
install.sh script
Operating system
No response
Screenshots or config snippets
No response
Before submitting
@github-actions[bot] commented on GitHub (Jun 13, 2026):
This is a duplicate of #4946, which describes the same error and root cause.
The validation message
subJsonPath: pages.settings.validation.pathLeadingSlashmeans the frontend Zod schema (frontend/src/schemas/setting.ts:5-6) is rejecting the JSON subscription path because it is empty or missing a leading slash. The backend returns an empty string when no value is stored, rather than the default/json/, so the field fails the/^\//regex check on every save attempt.UI workaround (no SSH needed)
onBlurhandler inSubscriptionFormatsTab.tsxcallsnormalizePath(), which converts an empty value to/json/automatically.If the field still shows empty or a path without a leading slash, type a valid absolute path (e.g.
/json/) manually before saving.Command-line fix (if the UI workaround does not work)
Further discussion and additional context are in #4946.
This reply was generated automatically; a maintainer may follow up.