Sep 5, 2012 at 1:57 AM
Edited Sep 5, 2012 at 1:59 AM
Sorry to bring up an old post, but can somebody help a novice? I am trying to hard code a base URL into the outbound email link (to the post). The reason for this is that we have dual servers running and to make sure we update the primary one we have to
post under the absolute URL of the primary server which is then copied into the email link rather than the main domain URL.
What I need to update is the [LINK] part of the email template.
So based on that, is it just a case of updaing the urlbase above?
var urlbase = Path.Combine(
Path.Combine(Utils.AbsoluteWebRoot.AbsoluteUri, "themes"), BlogSettings.Instance.Theme);
var urlbase = "http://www.maindomain.com/themes/chosentheme";
Or will that have no effect on the actual [LINK]
Would I need to do it directly there instead?
body = body.Replace("[LINK]", publishable.AbsoluteLink.AbsoluteUri);
body = body.Replace("[LINK]", publishable.AbsoluteLink + "http://www.maindomain.com/");
or am I barking up the wrong tree entirely?
Any pointers or help is highly appreciated.