{"id":21381,"date":"2019-12-11T09:08:21","date_gmt":"2019-12-11T09:08:21","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=21381"},"modified":"2022-07-01T14:53:44","modified_gmt":"2022-07-01T09:23:44","slug":"redirect-to-login-page-always-after-logout-in-dynamics-365-portal","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2019\/12\/redirect-to-login-page-always-after-logout-in-dynamics-365-portal\/","title":{"rendered":"Redirect to Login page always after logout in Dynamics 365 Portal"},"content":{"rendered":"<h2><strong>Introduction<\/strong><\/h2>\n<p>In this blog, we will see how we can navigate to login page after once we logout from any page in Microsoft Portal.<\/p>\n<p>Let\u2019s look at the requirement where we want to provision the setup such as that the log-in page is redirected as soon the user logs out. Now, after logging again in the portal user is again redirected to the same page from where he logged out.<\/p>\n<p>There are only 3 steps, which we need to be followed to cater the above requirement in our Dynamics 365 Portal.<\/p>\n<p><strong>Step 1<\/strong><\/p>\n<p>Go to the Web Template entity and search <strong>\u201cheader\u201d.<\/strong><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-21385\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/1Dynamics-365-Portal.png\" alt=\"Dynamics 365 Portal\" width=\"1364\" height=\"290\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/1Dynamics-365-Portal.png 1364w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/1Dynamics-365-Portal-300x64.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/1Dynamics-365-Portal-768x163.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/1Dynamics-365-Portal-1024x218.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/1Dynamics-365-Portal-660x140.png 660w\" sizes=\"(max-width: 1364px) 100vw, 1364px\" \/><\/p>\n<p><strong>Step 2<\/strong><\/p>\n<p>Open the record and find the logout section in source control.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-21384\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/2Dynamics-365-Portal.png\" alt=\"Dynamics 365 Portal\" width=\"1140\" height=\"499\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/2Dynamics-365-Portal.png 1140w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/2Dynamics-365-Portal-300x131.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/2Dynamics-365-Portal-768x336.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/2Dynamics-365-Portal-1024x448.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/2Dynamics-365-Portal-660x289.png 660w\" sizes=\"(max-width: 1140px) 100vw, 1140px\" \/><\/p>\n<p><strong>Step 3<\/strong><\/p>\n<p>Update the href attribute of the anchor tag as below.<\/p>\n<p>From: &#8211; href=&#8221;{%\u00a0if\u00a0homeurl%}\/{{\u00a0homeurl\u00a0}}{%\u00a0endif\u00a0%}{{\u00a0website.sign_out_url_substitution\u00a0}}&#8221;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-21383\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/3Dynamics-365-Portal.png\" alt=\"Dynamics 365 Portal\" width=\"943\" height=\"142\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/3Dynamics-365-Portal.png 943w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/3Dynamics-365-Portal-300x45.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/3Dynamics-365-Portal-768x116.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/3Dynamics-365-Portal-660x99.png 660w\" sizes=\"(max-width: 943px) 100vw, 943px\" \/><\/p>\n<p>To: &#8211;<\/p>\n<p>href=&#8221;\/Account\/Login\/LogOff?returnUrl={{ website.sign_out_url_substitution }}&#8221;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-21382\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/4Dynamics-365-Portal.png\" alt=\"Dynamics 365 Portal\" width=\"981\" height=\"140\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/4Dynamics-365-Portal.png 981w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/4Dynamics-365-Portal-300x43.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/4Dynamics-365-Portal-768x110.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/4Dynamics-365-Portal-660x94.png 660w\" sizes=\"(max-width: 981px) 100vw, 981px\" \/><\/p>\n<p>We have just replaced the homeurl with \/Account\/Login\/LogOff?returnUrl=<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>This is the most precise way to set the login page as default page after logout.<\/p>\n<h2 style=\"text-align: left;\"><div class=\"su-heading su-heading-style-default su-heading-align-center\" id=\"\" style=\"font-size:15px;margin-bottom:5px\"><div class=\"su-heading-inner\">Free 70% of storage space in CRM with Attachment Management Apps!<\/div><\/div><\/h2>\n<p><em><strong><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/attach-2-dynamics-365-crm-upload-multiple-files-sharepoint-cloud-storage\" target=\"_blank\" rel=\"noopener noreferrer\">Attach2Dynamics<\/a> &#8211; Store and manage documents\/attachments in cloud storage of your choice &#8211; SharePoint, Dropbox or Azure Blob Storage from within Dynamics 365 CRM.<\/strong><\/em><br \/>\n<em><strong><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/dynamics-365-crm-sharepoint-security-metadata-sync\" target=\"_blank\" rel=\"noopener noreferrer\">SharePoint Security Sync<\/a><\/strong> \u2013 Robust and secure solution to integrate Dynamics 365 CRM and SharePoint Security Sync thereby ensuring secure access to confidential documents stored in SharePoint.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In this blog, we will see how we can navigate to login page after once we logout from any page in Microsoft Portal. Let\u2019s look at the requirement where we want to provision the setup such as that the log-in page is redirected as soon the user logs out. Now, after logging again in\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2019\/12\/redirect-to-login-page-always-after-logout-in-dynamics-365-portal\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":21387,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[37],"tags":[569,1162],"class_list":["post-21381","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-portals","tag-dynamics-365-portal","tag-microsoft-portal"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/21381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=21381"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/21381\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/21387"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=21381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=21381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=21381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}