You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi, implemented your breadcrumbs take on my site, worked very good, until i reached a page that i hadn't built yet. Didn't care for the exception i got from razor as the page did not exist (ie: The view 'Details' or its master was not found or no view engine supports the searched locations)
The, problem is:
i clicked on the browser's back button, then went into a page that DID exist, and the crumbs where wrong as it was somthing like:
MainPage>NonExistingPage>ExistingPage
then debugging your code i found the issue, you simply load a crumble for every page visited.
So in order to fix this i'd suggest:
1- over BreadCrumbAttribute, you could override OnResultExecuted to check on the result you get, and then do something about it (clear the crumb or not take it in, or whatever)
2- maybe setup some sort of config as to not take some crumbs in specific scenarios (i dont wanna get to a 404 custom error page, click back, click into something else, and have this problem again)
sadly, i don't have time to mix something up to provide as possible solution right now, but maybe sometime next week, any case, try it out, and i hope my suggestions help.
Thanks for your work! it's very good :)
The text was updated successfully, but these errors were encountered:
hi, implemented your breadcrumbs take on my site, worked very good, until i reached a page that i hadn't built yet. Didn't care for the exception i got from razor as the page did not exist (ie: The view 'Details' or its master was not found or no view engine supports the searched locations)
The, problem is:
i clicked on the browser's back button, then went into a page that DID exist, and the crumbs where wrong as it was somthing like:
MainPage>NonExistingPage>ExistingPage
then debugging your code i found the issue, you simply load a crumble for every page visited.
So in order to fix this i'd suggest:
1- over BreadCrumbAttribute, you could override OnResultExecuted to check on the result you get, and then do something about it (clear the crumb or not take it in, or whatever)
2- maybe setup some sort of config as to not take some crumbs in specific scenarios (i dont wanna get to a 404 custom error page, click back, click into something else, and have this problem again)
sadly, i don't have time to mix something up to provide as possible solution right now, but maybe sometime next week, any case, try it out, and i hope my suggestions help.
Thanks for your work! it's very good :)
The text was updated successfully, but these errors were encountered: