Table of contents
No headers
// Paste PHP Code
===================================================================
--- data/basedata.xml(revision 24144)
+++ data/basedata.xml(working copy)
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
+\<?xml version="1.0" encoding="utf-8"?>
<entities>
<deployments>
<deployment id="1"
@@ -881,6 +881,7 @@
</users>
<configuration>
<entry key="Site.DefaultDomain" value="mindtouch.com"/>
+ <entry key="Site.PortalHost" value="portal.mindtouch.com"/>
<entry key="Deployment.ActiveApiVersion" value="10.0.3"/>
<entry key="Billing.Environment" value="sandbox"/>
<entry key="Billing.MerchantId" value="6pjfscxsy64bvp8g"/>
Index: src/mindtouch.portal.site/Controllers/DefaultController.cs
===================================================================
--- src/mindtouch.portal.site/Controllers/DefaultController.cs(revision 24168)
+++ src/mindtouch.portal.site/Controllers/DefaultController.cs(working copy)
@@ -41,8 +41,8 @@
// determine if the current hostname is a requested site
var host = _requestContext.RequestUri.Host;
- // (guerrics): hack, hack, hack hardcoding localhost for development
- if (host == "localhost" || host == "portal." + _siteConfig.DefaultDomain) {
+ // (guerrics): including localhost for development
+ if (host == "localhost" || host == _siteConfig.PortalHost) {
if (!_authInfo.IsLoggedIn) {
return RedirectToAction("Login", "Auth");
}