Commit a6a14b2446be2c16eb6887e39f5f030351f8d7ae

Authored by Thibaut
1 parent 22a00fe2ea
Exists in master

#7 Url Root Relative

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

app/views/taskboard/index.html.erb View file @ a6a14b2
... ... @@ -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'));