-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Breadcrumb disappeared in deployed Demo App on Refresh #1
Comments
Can you please elaborate. Does it get disappered or not shown with dynamic updated values |
First time it's load fine but but as soon as hit refresh it gets disappeared!! For every routes not only dynamic updated values |
If you play around https://xng-breadcrumb.netlify.com, it shows breadcrumb even on page refresh. Can you provide a stackblitz to see the issue. |
if i do refresh with this url https://xng-breadcrumb.netlify.com it is giving me error. |
Okay I got that! the problem is with netlify redirects (deployed env), but not the library behaviour itself. Thanks for reporting. I will fix the deployment. |
@ani006 Irrespective of this, the library should work with your project even with refresh. Please let me know otherwise. |
@ani006 I have fixed the issue in deployment https://xng-breadcrumb.netlify.com. You should see that working on page refresh as well. cheers! Please close the issue if this works:) |
One
One more thing i observed in my project that if i don't add breadcrumb for any particular router then also it showing the URL as breadcrumb. Can you tell why ? |
As per the current design, breadcrumbs(same as route) will be shown even if there is no breadcrumbs defined. Please go through README You have to explicitly define not to show breadcrumbs, by one of the below ways -
check this url - https://xng-breadcrumb.netlify.com/mentee/7/edit I understand, this is not the desired behaviour always. I will make this behaviour optional with next minor release |
Brother it's still doesn't work on refresh what could be the problem in my project ?? |
Here is a minimal stackblitz example that works on refresh as well - https://stackblitz.com/edit/xng-breadcrumb. |
@ani006 You can now disable the default behavior of showing breadcrumbs Disabling default mapping of route to breadcrumb label:
|
Alright brother !! |
@udayvunnam Hi Uday thanks for the reply , I am using version "xng-breadcrumb": "^2.1.0" ,As i am using angular 7 , Please let me know how can i resolve this issue . Thanks in advance |
Discussion resolved in #18 |
On refresh breadcrumb gets disappeared!!
The text was updated successfully, but these errors were encountered: