diff --git a/lib/gollum/frontend/app.rb b/lib/gollum/frontend/app.rb index 54a83e19..28a804d7 100644 --- a/lib/gollum/frontend/app.rb +++ b/lib/gollum/frontend/app.rb @@ -82,7 +82,7 @@ module Precious end before do - @base_url = url('/', false) + @base_url = url('/', false).chomp('/') settings.wiki_options.merge!({ :base_path => @base_url }) unless settings.wiki_options.has_key? :base_path end diff --git a/lib/gollum/frontend/public/gollum/javascript/gollum.js b/lib/gollum/frontend/public/gollum/javascript/gollum.js index 2950dc10..29ba6d6d 100755 --- a/lib/gollum/frontend/public/gollum/javascript/gollum.js +++ b/lib/gollum/frontend/public/gollum/javascript/gollum.js @@ -4,7 +4,7 @@ $(document).ready(function() { var ok = confirm($(this).data('confirm')); if ( ok ) { var loc = window.location; - loc = baseUrl + 'delete' + loc.pathname + loc = baseUrl + '/delete' + loc.pathname window.location = loc; } // Don't navigate on cancel. @@ -138,7 +138,7 @@ $(document).ready(function() { var msg = 'Renamed ' + oldName + ' to ' + newName; jQuery.ajax( { type: 'POST', - url: baseUrl + 'edit/' + oldName, + url: baseUrl + '/edit/' + oldName, data: { path: path, rename: newName, page: oldName, message: msg }, success: function() { window.location = baseUrl + encodeURIComponent(newName); diff --git a/lib/gollum/frontend/templates/compare.mustache b/lib/gollum/frontend/templates/compare.mustache index 55afc777..b180a6a8 100644 --- a/lib/gollum/frontend/templates/compare.mustache +++ b/lib/gollum/frontend/templates/compare.mustache @@ -6,11 +6,11 @@
  • {{>searchbar}}
  • -
  • View Page
  • -
  • Edit Page
  • -
  • Page History
  • @@ -23,10 +23,10 @@ {{#show_revert}}
    + action="{{base_url}}/compare/{{escaped_url_path}}">
    @@ -39,7 +39,7 @@ {{/versions}} diff --git a/lib/gollum/frontend/templates/layout.mustache b/lib/gollum/frontend/templates/layout.mustache index e3e6ad2e..185d251f 100644 --- a/lib/gollum/frontend/templates/layout.mustache +++ b/lib/gollum/frontend/templates/layout.mustache @@ -2,22 +2,22 @@ - - - - + + + + - - - - - - + + + + + + {{#mathjax}}
    {{date}}:  {{message}} - [{{id7}}] + [{{id7}}]