Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2 Determining isRailsPath failing on IE

closed-accepted
nobody
None
5
2009-02-28
2008-07-09
Ethan Garofolo
No

In rico.js at line 38, when path is assigned, IE was stripping of the protocol and domain name of the path. Thus, on line 45 where isRailsPath is assigned, the indexOf("/javascripts") was returning 0, as opposed to some number greater than 0. It would thus fail to recognize that it was indeed coming from a Rails path, setting the resulting directory values incorrectly.

This issue was solved by changing the comparison on the indexOf to >= 0, as opposed to just > 0.

Discussion

  • Ethan Garofolo
    Ethan Garofolo
    2008-07-09

    The patch/diff with the fix in it

     
  • Matt Brown
    Matt Brown
    2009-02-28

    • status: open --> closed-accepted