Opened 14 years ago

Closed 12 years ago

Last modified 9 years ago

#7617 closed defect (fixed)

datefield.js is not under the chrome directory — at Version 3

Reported by: Andrew Bates Owned by: Robert Corsaro
Priority: normal Component: DateFieldPlugin
Severity: normal Keywords: JavaScript htdocs location virtual
Cc: Steffen Hoffmann Trac Release: 0.12

Description (last modified by Ryan J Ollos)

This makes it more difficult to classify datefield.js as a cacheable static resource.

The url is currently: /trac_env/datefield/datefield.js The optimal would be: /trac_env/chrome/datefield/datefield.js

Change History (3)

comment:1 Changed 12 years ago by Ryan J Ollos

I'm not sure that DateFieldPlugin has control over this. Isn't this under the control of Trac? DateFieldPlugin just calls add_script. Do you have a suggested fix?

comment:2 Changed 12 years ago by Martin

With Apache, I believe this works:

# matches trac static files
AliasMatch ^/(.+)/chrome/common/(.*) /usr/share/pyshared/trac/htdocs/$2
# matches trac plugins static files, e.g. datefields
AliasMatch ^/(.+)/chrome/([^/]*)/(.*) /usr/share/pyshared/$2/htdocs/$3

comment:3 Changed 12 years ago by Ryan J Ollos

Cc: Steffen Hoffmann added; anonymous removed
Description: modified (diff)
Resolution: invalid
Status: newclosed

I don't think this is a plugin issue, but rather an installation issue. Please reopen if this is not the case.

Note: See TracTickets for help on using tickets.