Skip to content

Commit

Permalink
Merge pull request #28 from fr3nch13/1.x-dev
Browse files Browse the repository at this point in the history
Update nav-links.ctp
  • Loading branch information
fr3nch13 authored Mar 6, 2020
2 parents d4d35fb + e55cf3d commit c3911a8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Template/Element/nav-links.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,17 @@ use Cake\Routing\Router;
$(document).ready(function()
{
/**
* This updates the urls for the jira links so the
* Initially update the referer.
*/
$('.jira-menu .jira-body a.jira-link').each(function(e)
{
var $href = $(this).attr('href');
console.log($href);
$href = $href.replace(/\?referer\=.*/, '?referer=' + encodeURI(window.location.href));
$(this).attr('href', $href);
});
/**
* This updates the urls for the jira links when the url changes so the
* submitted issue has an accurate url being reported.
*/
$(window).bind('locationchange', function()
Expand Down

0 comments on commit c3911a8

Please sign in to comment.