diff --git a/lib/gollum/frontend/public/gollum/javascript/gollum.js b/lib/gollum/frontend/public/gollum/javascript/gollum.js index b58d5ab2..dbff8f70 100755 --- a/lib/gollum/frontend/public/gollum/javascript/gollum.js +++ b/lib/gollum/frontend/public/gollum/javascript/gollum.js @@ -4,8 +4,7 @@ $(document).ready(function() { var ok = confirm($(this).data('confirm')); if ( ok ) { var loc = window.location; - // location.origin is not in Firefox so use protocol + host - loc = loc.protocol + '//' + loc.host + baseUrl + '/delete' + loc.pathname.replace(baseUrl,'') + loc = baseUrl + '/delete' + loc.pathname.replace(baseUrl,''); window.location = loc; } // Don't navigate on cancel.