Project

General

Profile

Actions

Defect #10909

closed

Different from Rails 3 stylesheet_link_tag behaviour

Added by John Yani about 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

In Rails 3, stylesheet_link_tag adds ".css" extension if there is no one.
So this:

stylesheet_link_tag('jquery/jquery.qtip')

results in
/stylesheets/jquery/jquery.qtip.css

But in Redmine
stylesheet_link_tag('jquery/jquery.qtip', :plugin => 'my_plugin')

results in
/plugin_assets/my_plugin/stylesheets/jquery/jquery.qtip

So that I have to add ".css" extension.

The same applies to javascript_include_tag. Does Redmine change Rails 3 behaviour?

Actions

Also available in: Atom PDF