How to set up optional segment for last path in URL #11353
Unanswered
deathemperor
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have this path:
/portal/hc-claim-cases/:claimCaseId/:section?
, I'm able to retrieveclaimCaseId
with useParams but notsection
.sample path:
/portal/hc-claim-cases/bcf5fe49-42f8-479c-9526-45f980fa1019/gallery
what works:
bcf5fe49-42f8-479c-9526-45f980fa1019
is value ofclaimCaseId
what doesn't:
section
property does not exist inuseParams()
Beta Was this translation helpful? Give feedback.
All reactions