Home General Discussion

How to change portal URL link sent out in email notifications

Suruchi_BharatiSuruchi_Bharati Customer IT Monkey ✭
So due to a federalwide mandate - we had to reconfigure the portal URL from http to Https. The new portal url is of the format - https://support.xxxx.gov
However emails sent out still contain the link in format http://server-name.
How to change the url link in all the email notifications sent to analysts to now say https://
I am new to Service Manager - please advise. thanks

Answers

  • Shane_WhiteShane_White Cireson Support Super IT Monkey ✭✭✭✭✭
    Hi @Suruchi_Bharati

    You will find all of the email Templates in the SCSM Console. If you open this, go to Administration > Notifications > Templates

    Open up the email template you are referring to, Go to template design and in here you should see all the links you have configured in your emails and you can change it to https.

    Hope this helps!
    Shane.
  • Suruchi_BharatiSuruchi_Bharati Customer IT Monkey ✭
    Thank you Shane. I wanted to ask do we need to bounce services or the portal for the changes to take effect? This is our production env. - and hence we cant afford downtime or gaps. Can do this during non business hrs
  • Shane_WhiteShane_White Cireson Support Super IT Monkey ✭✭✭✭✭
    @Suruchi_Bharati

    No you do not need to bounce the servers, depending on what it is that has been updated, you should either need to update the Cireson Cache Builder Service on the Portal server, Recycle the Application Pool or wait for a workflow to run!

    thanks,
    Shane.
  • Suruchi_BharatiSuruchi_Bharati Customer IT Monkey ✭
    Thanks Shane. Is there a sure way to proprogate all changes to templates ? Since we will be doing this during off hours - i would like tp perform that step to be sure all changes are in effect. Thank you
  • Shane_WhiteShane_White Cireson Support Super IT Monkey ✭✭✭✭✭
    @Suruchi_Bharati

    Do you mean one change across all templates? You might be able to do this using PowerShell but not via the GUI

    Thanks,
    Shane.
  • Suruchi_BharatiSuruchi_Bharati Customer IT Monkey ✭
    Nope the portal url is hardcoded in several of the templates. We change the portal to use https so I have to go in and change all the hardcoded portal url in several templates that send email notifications to analysts and update it to have Https or ssl now. So will need to change at least 20 templates
  • Shane_WhiteShane_White Cireson Support Super IT Monkey ✭✭✭✭✭
    Unfortunately you will have to go in them and change all 20 as there is no way to do this through the Console.
    Thanks,
    Shane.
  • Suruchi_BharatiSuruchi_Bharati Customer IT Monkey ✭
    Shane - after i have updated all the templates individually, how do I make these templates effective immediately ? 
  • Shane_WhiteShane_White Cireson Support Super IT Monkey ✭✭✭✭✭
    @Suruchi_Bharati

    They should take effect immediately after you save them.

    Thanks,
    Shane.
  • Suruchi_BharatiSuruchi_Bharati Customer IT Monkey ✭
    Thank you Shane for your quick responses!! So in summary - all i need to do is to edit all the templates individually during off hours and save those. And it will immediately take effect! Kindly confirm. Thank you once again
  • Shane_WhiteShane_White Cireson Support Super IT Monkey ✭✭✭✭✭
    Yes that is correct, they will not even need to be done out of hours if you not want to! Depending on your processes you should be able to just do it :smile:
    Shane.
  • Suruchi_BharatiSuruchi_Bharati Customer IT Monkey ✭
    Thank you for all your help :)
  • Jeff_LangJeff_Lang Customer Ninja IT Monkey ✭✭✭✭
    @Suruchi_Bharati if you needed to get this done quickly you could ensure the server with the portal installed has URLREWRITE added to IIS and just add a redirect from http to https, we actually have this done to force all calls to the server to go through https always.

    there would be no downtime for installing this to IIS and adding the forced redirect, and then no matter the link they use or type they will always get a https connection.

  • Suruchi_BharatiSuruchi_Bharati Customer IT Monkey ✭
    Jeff - thanks for your inputs. I wanted to ask - the portal URL is hardcoded inside the template - around 20 of them and the email notification subscription utilizes those templates to send out emails.  So I am thinking I have to modify the template. Will a redirect of URL work in such a case ??  Please let me know, thanks! If a simple redirect will do the job - thats best. Thank you
  • Suruchi_BharatiSuruchi_Bharati Customer IT Monkey ✭
    Also the templates have the URL in the format http://server-name/xxxxx whereas the URL of portal is www.xxxxx.gov. It was a design oversight to not change the URLs in the templates when the URL was reconfigured from server name to the www.xxxx.gov. Thats why the redirect may not work - in my opinion. The actual URL and the one hardcoded in the templates are different
  • Jeff_LangJeff_Lang Customer Ninja IT Monkey ✭✭✭✭
    @Suruchi_Bharati just redirecting the http portion of the url and keeping the rest is what we did. it doesn't matter the dns/server name used or the page requested, this gives time to update the templates without having to drop everything else to get them done, here is the config we used, and all it does is change the http to https without changing any other part of the url. by using this we just updated notification templates etc as we were updating other items, instead of all of them in one hit
    NOTE: You could change the {HTTP_HOST} in the redirect url at the bottom to the support.xxx.gov and it will change any address using the server name to access the page to using the support.xxx.gov as well, we just kept the host name the same as what was entered for ease of use migrating between dev/uat/prod environments

    Always best to make sure you do update the templates to the correct url at a more convenient time though
Sign In or Register to comment.