Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

How to change landing page and add another page as landing page - Dynamic 365 portal

(0) ShareShare
ReportReport
Posted on by 35

Hi all,

I want to remove my home page ( landing page) and add the registration page as a landing page. 

Currently, I do not check the user has a login on the website. They are automatically redirected to the home page URL. But I need to redirect on the registration URL. I do not need to check the user has a login on the website.

Home URL:  https://XXXX.powerappsportals.com/en-US/

Registration URL:  https://XXXX.powerappsportals.com/en-US/XXXregistration/

Thank you.

Kind Regards,

Dipen

  • Verified answer
    LeoAlt Profile Picture
    16,331 Moderator on at
    RE: How to change landing page and add another page as landing page - Dynamic 365 portal

    Hi patel,

    Here are the steps.

    1.Get your portal registration page url.

    pastedimage1590541402151v1.png

    In my case, it's xxx.powerappsportals.com/Account/Login/Register?returnUrl=/ ("%2F" decode is "/")

    2.Create a new web template, and add the following code in it.

    {% if user %}
    <script>
    window.location.replace('');
    </script>
    {% else %}
    <script>
    window.location.replace('/Account/Login/Register?returnUrl=/');
    </script>
    {% endif %}

    pastedimage1590541837646v2.png

    3.Go to Page Templates, find "Home" and change its web template to your new web tempalte.

    pastedimage1590542124453v1.png

    4.Wait a second and refresh your portal, you will find that your portal home page(landing page) has changed to registration page.

    pastedimage1590541936820v4.png

    Regards,

    Leo

  • D patel Profile Picture
    35 on at
    RE: How to change landing page and add another page as landing page - Dynamic 365 portal

    Hello partner,

    Thank you for a reply to my thread. The link you provide in this tread. That is not the same as I am looking to solve my issue.

    I need to remove the home page and set the registration page as a landing page in the dynamic 365 portal.

    Thank you.

    Kind Regrads,

    Dipen

  • Suggested answer
    Gustavo Longo Profile Picture
    on at
    RE: How to change landing page and add another page as landing page - Dynamic 365 portal

    Hello D patel,

    Please, refer for this thread:

    powerusers.microsoft.com/.../349385

    Regards,

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,069 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,858 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans