fixed actualFormUrl for subdomains disabled case
This commit is contained in:
parent
c7b1b2fc94
commit
7606fb567a
2
public/dist/application.js
vendored
2
public/dist/application.js
vendored
|
@ -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;
|
||||
|
|
2
public/dist/application.min.js
vendored
2
public/dist/application.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue