Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jezs opened this issue Jul 31, 2012 · 4 comments

Comments

@jezs
Copy link

jezs commented Jul 31, 2012

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
Copy link

ghost commented Aug 6, 2012

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
Copy link

ghost commented Aug 6, 2012

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
Copy link
Author

jezs commented Aug 13, 2012

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
Copy link
Author

jezs commented Aug 22, 2012

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,
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant