Defect #7330

javascript_include_tag not work for filename with multi dots

Added by Sergei Danilov about 11 years ago. Updated about 1 year ago.

Status:ClosedStart date:2011-01-14
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Plugin API
Target version:-
Resolution:Wont fix Affected version:1.0.1

Description

With

https://github.com/friflaj/redmine_tagging/blob/master/lib/tagging_hooks.rb

Line 40

tags += javascript_include_tag 'jquery-1.4.2.min.js', :plugin => 'redmine_tagging'

Redmine fail to load jquery-1.4.2.min.js and redmine_tagging plugin not work properly

After renaming "jquery-1.4.2.min.js" to "jquery142min.js" and changing code to

tags += javascript_include_tag 'jquery142min.js', :plugin => 'redmine_tagging'

plugin works fine.

Redmine 1.0.1.devel.4083

History

#1 Updated by Jean-Philippe Lang about 11 years ago

Redmine fail to load jquery-1.4.2.min.js and redmine_tagging plugin not work properly

With current trunk, it generates a correct script tag:

javascript_include_tag 'jquery-1.4.2.min.js', :plugin => 'redmine_tagging'
=> <script src="/plugin_assets/redmine_tagging/javascripts/jquery-1.4.2.min.js" type="text/javascript"></script>

What does your broken script tag look like?

#2 Updated by Sergei Danilov about 11 years ago


With current trunk, it generates a correct script tag:

javascript_include_tag 'jquery-1.4.2.min.js', :plugin => 'redmine_tagging'
=> <script src="/plugin_assets/redmine_tagging/javascripts/jquery-1.4.2.min.js" type="text/javascript"></script>

Javascript look like:

<script src="/plugin_assets/redmine_tagging/javascripts/jquery-1.4.2.min.js?1294998561" type="text/javascript"></script>

All javasripts in html pages look like

<script src="<javascript file>?<magic number>" type="text/javascript"></script>

What is the significance of <magic number>?

Javascript NOT broken. It's just not inject in html page.

#3 Updated by Малъ Скрылёвъ over 10 years ago

Sergej, what is happened with your problem?

#4 Updated by Go MAEDA about 1 year ago

  • Status changed from New to Closed
  • Resolution set to Wont fix

Sergei Danilov wrote:

Javascript look like:
[...]

All javasripts in html pages look like

[...]

What is the significance of <magic number>?

It is not a problem. Please see the following page:
What does this random number do: /javascripts/rails.js?1271798101 - Stack Overflow

Also available in: Atom PDF