Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Wrong breadcrumbs when opening page via javascript

Posted on by 3,079

We have some javascript that opens a page to the main view of an entity (window.top.location.href = (url + '/main.aspx?etn=<entityname>&pagetype=entitylist&web=true').  This opens the correct view just fine, and the navigation is all visible, just as we'd want.  However, there's one minor glitch - the breadcrumbs (I think official terminology might be module selector and record type?) up top in the navigation are not what we'd like to see.  It's either set to the breadcrumbs for the page that the javascript was called on, or if the URL is just pasted into a browser, they're the breadcrumbs for the user's default page.  For example, if I'm opening Opportunities, but my default home page is Service > Cases, the top bar shows Service > Cases, but the view below is for Opportunities.

Is there any way to set these navigation items in the URL?  It's quite confusing to have them seemingly creating a path that doesn't exist.

*This post is locked for comments

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans