From 77c4dc17f2cbe6da584445dd0fa755e9d4bac75d Mon Sep 17 00:00:00 2001 From: Henry Date: Tue, 26 Apr 2016 08:40:42 -0700 Subject: [PATCH] Added license, fixed routing --- demo/bundle.js | 11 +++++++++++ demo/src/DemoInitializer.js | 5 ++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/demo/bundle.js b/demo/bundle.js index af91003bd1..a77a60b7b8 100644 --- a/demo/bundle.js +++ b/demo/bundle.js @@ -126,6 +126,17 @@ define([ } } ], + "licenses": [ + { + "name": "Hopscotch", + "version": "0.2.5", + "description": "Hopscotch is a framework to make it easy" + + " for developers to add product tours to their pages.", + "license": "license-apache", + "website": "http://linkedin.github.io/hopscotch/", + "link": "https://raw.githubusercontent.com/linkedin/hopscotch/master/LICENSE" + } + ], "stylesheets": [ { "stylesheetUrl": "css/hopscotch.css", diff --git a/demo/src/DemoInitializer.js b/demo/src/DemoInitializer.js index 6e946f2bf2..994086efae 100644 --- a/demo/src/DemoInitializer.js +++ b/demo/src/DemoInitializer.js @@ -64,7 +64,10 @@ define( ]; }) }).then(function() { - $location.url("/browse/mct:demo/88a26104-8bd5-445d-8b57-10b567d2823d"); + //For default route, redirect user to layout + if ($location.path().length == 0 || $location.path() === "/") { + $location.url("/browse/mct:demo/88a26104-8bd5-445d-8b57-10b567d2823d"); + } }); $timeout(function() {