From d476c58a9c3ff5a0a3341e014540308628054355 Mon Sep 17 00:00:00 2001 From: Colin McLeod Date: Fri, 9 Oct 2015 18:29:04 -0700 Subject: [PATCH] Workaround for UI-router bug for build with slash in the name. Fixes #105 --- app/js/controllers/controller-outfit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/js/controllers/controller-outfit.js b/app/js/controllers/controller-outfit.js index 23a2876d..21868b47 100755 --- a/app/js/controllers/controller-outfit.js +++ b/app/js/controllers/controller-outfit.js @@ -12,7 +12,7 @@ angular.module('app').controller('OutfitController', ['$window', '$rootScope', ' ship.buildWith(data.defaults); // Populate with default components } - $scope.buildName = $p.bn; + $scope.buildName = $p.bn ? $window.decodeURIComponent($p.bn) : null; $scope.ships = Ships; $rootScope.title = ship.name + ($scope.buildName ? ' - ' + $scope.buildName : ''); $scope.ship = ship;