Project

General

Profile

Actions

Defect #3935

closed

stylesheet_link_tag with plugin doesn't take into account relative_url_root

Added by Luca Pireddu about 15 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugin API
Target version:
Start date:
2009-09-28
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

When using the stylesheet_link_tag helper (and probably others) with :plugin to build URLs for plugin assets, this helper doesn't take into account the relative_url_root set through Redmine::Utils::relative_url_root

I think I've traced the problem to the method plugin_asset_path in module Engines::RailsExtensions::AssetHelpers, file vendor/plugins/engines/asset_helpers.rb

I guess that strictly speaking Engines is responsible for the bug and not Redmine. I'll leave it up to someone else to decide whether or not to resolve it in Redmine.


Related issues

Has duplicate Redmine - Defect #5021: stylesheet_link_tag does not honor Redmine running out of a sub-uri if it is called from a pluginClosed2010-03-09

Actions
Has duplicate Redmine - Defect #3753: Plugin asset URLs not correctly generated for sub-URI deploymentsClosedEric Davis2009-08-18

Actions
Actions

Also available in: Atom PDF