256MbTeam / Redmine-Scrumbler

Easy to use plugin for Redmine. It allows users to use the Scrum/Agile process in projects. Scrumbler have interactive dashboard with the ability to configure for each sprint. Plugin adds Scrum Points field in every issue in project. Scrumbler as possible using the standard redmine structure of projects.
GNU General Public License v2.0
112 stars 41 forks source link

Tracker and Issue links in Scrumbler tab results to "Page not found" when redmine is deployed in a sub-URI #88

Open jezs opened 11 years ago

jezs commented 11 years ago

Redmine is currently setup in a sub-URI. i.e., http://localhost/*_redmine_

In the Scrumbler tab, when I click on the tracker or issue number link, it goes to: http://localhost/projects/4/issues?tracker_id=1 http://localhost/issues/20 respectively, which results to a 404 Page not found error.

The correct links are: http://localhost/**redmine**/projects/4/issues?tracker_id=1 http://localhost/**redmine**/issues/20

ghost commented 11 years ago

I am facing the same problem with version 1.5. I am running the scrumbler plugin on redmine 2.0.3. Also the drag and drop between using the backlogs ( between backlogs & sprint) doesn't seems to work, Is it a new issue recently introduced? Any suggested solution?

ghost commented 11 years ago

A quick update. In my case since my redmine is running on http://mywebsite/redmine I could work around the problem by editing plugins\redmine_scrumbler\app\helpers\scrumbler_helper.rb file.

Instead of javascript_tag "var Scrumbler = {}; Scrumbler.Translations = #{translations.to_json}; Scrumbler.root_url = '/'; Scrumbler.possible_points = #{ScrumblerIssueCustomField.points.possible_values.to_json};"

use javascript_tag "var Scrumbler = {}; Scrumbler.Translations = #{translations.to_json}; Scrumbler.root_url = '/redmine/'; Scrumbler.possible_points = #{ScrumblerIssueCustomField.points.possible_values.to_json};"

But that expects your redmine is available in /var/www/redmine and you have configured the apache relative to that.

jezs commented 11 years ago

Thank you for the work-around. The links are now working.

Were you also able to determine how to fix the images in the Backlog or Sprint page? Scrumbler tab -> Backlog link

Inspecting the element, it has the ff. code:

<img src="/images/2uparrow.png" title="Move to top" alt="Move to top" class="scrumbler-move-issue-priority">

Where do I fix the codes so that: src="/images/2uparrow.png"

becomes src="/redmine/images/2uparrow.png"

jezs commented 11 years ago

Already saw the fix for this:

File: \plugins\redmine_scrumbler\assets\javascripts\scrumbler-backlog.js

Change the src: '/images/' to src: '/redmine/images/'.

...
        function makeMovePriorityLink(config) {
            var title = Scrumbler.Translations['label_sort_'+config.issue_action];
            var a = new Element('img', { 
                src: '/images/'+config.image,
...

Change to :

...
        function makeMovePriorityLink(config) {
            var title = Scrumbler.Translations['label_sort_'+config.issue_action];
            var a = new Element('img', { 
                src: '/redmine/images/'+config.image,
...