Skip to content

Commit

Permalink
Add base path prefixes to taskboard links
Browse files Browse the repository at this point in the history
Fixes #414
  • Loading branch information
Alanaktion committed Mar 18, 2023
1 parent 85b3123 commit 40fbc29
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 22 deletions.
6 changes: 3 additions & 3 deletions app/view/taskboard/index.html
Expand Up @@ -60,7 +60,7 @@
<div class="btn-group" role="navigation">
<check if="{{ @prevSprint }}">
<true>
<a href="/taskboard/{{ @prevSprint.id }}/{{ @filter }}" class="btn btn-default btn-xs" title="Previous Sprint">
<a href="{{ @BASE }}/taskboard/{{ @prevSprint.id }}/{{ @filter }}" class="btn btn-default btn-xs" title="Previous Sprint">
</a>
</true>
Expand All @@ -70,12 +70,12 @@
</span>
</false>
</check>
<a href="/taskboard/0/{{ @filter }}" class="btn btn-default btn-xs" title="Current Sprint">
<a href="{{ @BASE }}/taskboard/0/{{ @filter }}" class="btn btn-default btn-xs" title="Current Sprint">
📅
</a>
<check if="{{ @nextSprint }}">
<true>
<a href="/taskboard/{{ @nextSprint.id }}/{{ @filter }}" class="btn btn-default btn-xs" title="Next Sprint">
<a href="{{ @BASE }}/taskboard/{{ @nextSprint.id }}/{{ @filter }}" class="btn btn-default btn-xs" title="Next Sprint">
</a>
</true>
Expand Down
39 changes: 21 additions & 18 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/taskboard.js
Expand Up @@ -317,7 +317,7 @@ var Taskboard = {
data: data,
success: function(result) {
Taskboard.newUnBlock(taskId);
$(card).find('.task-id').html('<a href="/issues/' + result.id + '" target="_blank">' + result.id + '</a>');
$(card).find('.task-id').html('<a href="' + BASE + '/issues/' + result.id + '" target="_blank">' + result.id + '</a>');
$(card).attr('id', 'task_' + result.id);
Taskboard.makeDraggable(card);
},
Expand Down

0 comments on commit 40fbc29

Please sign in to comment.