fixed actualFormUrl for subdomains disabled case

This commit is contained in:
David Baldwynn 2017-03-27 17:19:03 -07:00
parent c7b1b2fc94
commit 7606fb567a
No known key found for this signature in database
GPG key ID: 15D1C13202224A9B
3 changed files with 3 additions and 3 deletions

View file

@ -2254,7 +2254,7 @@ angular.module('forms').controller('AdminFormController', ['$rootScope', '$windo
$scope.formURL = "/#!/forms/" + $scope.myform._id;
if($window.subdomainsDisabled == true){
$scope.actualFormURL = window.location.protocol + '//' + window.location.host + $scope.formURL;
$scope.actualFormURL = window.location.protocol + '//' + window.location.host + '/view' + $scope.formURL;
} else {
if(window.location.host.split('.').length < 3){
$scope.actualFormURL = window.location.protocol + '//' + $scope.myform.admin.username + '.' + window.location.host + $scope.formURL;

File diff suppressed because one or more lines are too long

View file

@ -26,7 +26,7 @@ angular.module('forms').controller('AdminFormController', ['$rootScope', '$windo
$scope.formURL = "/#!/forms/" + $scope.myform._id;
if($window.subdomainsDisabled == true){
$scope.actualFormURL = window.location.protocol + '//' + window.location.host + $scope.formURL;
$scope.actualFormURL = window.location.protocol + '//' + window.location.host + '/view' + $scope.formURL;
} else {
if(window.location.host.split('.').length < 3){
$scope.actualFormURL = window.location.protocol + '//' + $scope.myform.admin.username + '.' + window.location.host + $scope.formURL;