diff --git a/demo/js/app.js b/demo/js/app.js index a7cbff75..e421d894 100755 --- a/demo/js/app.js +++ b/demo/js/app.js @@ -16,6 +16,10 @@ $(function() { el: $el , model: dataset }); + // HACK (a bit). Issue is that Backbone will not trigger the route + // if you are already at that location so we have to make sure we genuinely switch + window.dataExplorer.router.navigate('graph'); + window.dataExplorer.router.navigate('', true); }); $('a.set-read-only').click(function() { window.dataExplorer.setReadOnly(); @@ -53,7 +57,7 @@ function demoDataset() { function setupLoadFromWebstore(callback) { // pre-populate webstore load form with an example url - var demoUrl = 'http://webstore.test.ckan.org/rufuspollock/demo/data'; + var demoUrl = 'http://webstore.thedatahub.org/rufuspollock/gold_prices/data'; $('form.webstore-load input[name="source"]').val(demoUrl); $('form.webstore-load').submit(function(e) { e.preventDefault();