The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit 77c82902 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

UserComments ajax fix for regular record url.

parent e84e122a
No related merge requests found
......@@ -149,7 +149,10 @@ function registerTabEvents() {
function ajaxLoadTab(tabid) {
var id = $('.hiddenId')[0].value;
// Grab the part of the url that is the Controller and Record ID
var urlroot = document.URL.match(new RegExp('/[^/]+/'+id+'/'));
var urlroot = document.URL.match(new RegExp('/[^/]+/'+id+'(/|\\b)'));
if(urlroot[0].substring(-1) != '/') {
urlroot[0] += '/';
}
$.ajax({
url: path + urlroot[0] + 'AjaxTab',
type: 'POST',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment