Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Hello @Nimesh,
You cannot reliably achieve both behaviors together.
- Using
teamslogon.aspxensures Teams authentication loads correctly but renders SharePoint in embedded/SPFx mode, which hides the top navigation. - Using
/?app=portalsshows full site navigation but may fail intermittently because authentication isn’t completed before the page loads.
There is currently no supported way to guarantee both pre-authentication and full portal navigation in a single Teams tab, so you must choose between consistent auth or full navigation experience.
Reference:
https://learn.microsoft.com/en-us/microsoftteams/platform/resources/samesite-cookie-update
Your feedback is important to us. Please rate us: 🤩 Excellent 🙂 Good 😐 Average 🙁 Needs Improvement 😠 Poor