Commit 9eadae156862bd849d03899aa02a918cdcfc9080

Authored by Austin Smith
Exists in master

Merge pull request #8 from w3blogfr/patch-1

#7 Url Root Relative

Showing 1 changed file Side-by-side Diff

app/views/taskboard/index.html.erb View file @ 9eadae1
... ... @@ -42,8 +42,8 @@
42 42 </div>
43 43  
44 44 <script type="text/javascript">
45   - var project_save_url = '/projects/<%= @project.id %>/taskboard/save';
46   - var project_archive_url = '/projects/<%= @project.id %>/taskboard/archive-issues';
  45 + var project_save_url = '<%= Redmine::Utils::relative_url_root %>/projects/<%= @project.id %>/taskboard/save';
  46 + var project_archive_url = '<%= Redmine::Utils::relative_url_root %>/projects/<%= @project.id %>/taskboard/archive-issues';
47 47 var sections = [];
48 48 $('#sortable-root .taskboard-pane ul').each(function() {
49 49 sections.push($(this).attr('id'));