-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Breadcrumb Not Rendering Dynamic Segments, e.g. :projectId #6584
Comments
Just to be clear, by breadcrumb components you mean the Projects / Applications part? What specific dynamic segments are you referring to? |
I also wanted to clarify as to how you got to the projects route, did you make that route yourself or load it from somewhere else because i don't see it listed as one of the routes in the repo. |
That is correct I mean the
Yes, it is not the repo examples, in fact there is no example with dynamic paths. See my resources: createResource("projects", {
meta: {
hide: true
// --- SNIP ---
},
}),
createResource("applications", {
meta: {
// --- SNIP ---
hide: true,
parent: "projects"
},
}), In short, the don't seem to parse dynamic segments like |
Hello @aress31 If I understood correctly, you want to see the applications of the selected project. For example, this
This way, you can navigate to the selected project's details directly from the breadcrumb. Is this what you had in mind? |
@alicanerdurmaz exactly what I want and what I would expect the Is there a way to make it work as it is now? Haven't found a solution in the doc and digging the code, it seems that this is not supported as it is not parsing URL params to replace placeholders like |
There is no way to do that right now. I wrote hard-coded code to explain the feature. We need to implement this on useBreadcrumb hook. Our hands are full with other tasks, but we're always open to PRs 🙌 |
Is there a data stored in relation to the unique uuid in the URL? Eg: some readable name to be shown in the breadcrumb area? from where we can extract the readable name from the uuid and show it there in the breadcrumb |
@darshan-mundra-08 should be define in resource routes? Can we make parent accept strings like ":projectId"? |
@aress31 No, Its not important that it should be in the source resource routes? the data should be defined anywhere in the project whose variable are accessible to the breadcrumb component. |
Can I work on this guys? |
Describe the bug
The breadcrumb component is not rendering dynamic segments. See the screenshot below:
Steps To Reproduce
N/A
Expected behavior
Should render dynamic segment.
Packages
All to latest.
Additional Context
No response
The text was updated successfully, but these errors were encountered: