diff --git a/.gitignore b/.gitignore index 705364c..1033600 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ test/dummy/log/*.log test/dummy/tmp/ test/dummy/.sass-cache .idea/ -Gemfile.lock \ No newline at end of file +Gemfile.lock +node_modules/ diff --git a/app/assets/javascripts/try_api/application.js.erb b/app/assets/javascripts/try_api/application.js.erb index c627c9b..2ec01e3 100644 --- a/app/assets/javascripts/try_api/application.js.erb +++ b/app/assets/javascripts/try_api/application.js.erb @@ -204,7 +204,7 @@ TryApiApp.controller('HomeController', [ if (next == null) { next = ''; } - if (next) { + if (path && next) { next = '[' + next + ']'; } if (path) {