zotero / styles-repo

Zotero styles page
http://www.zotero.org/styles
14 stars 12 forks source link

Preserve pathname when adding query argument #8

Closed aurimasv closed 11 years ago

aurimasv commented 11 years ago

This should address https://github.com/zotero/styles-repo/commit/c171cefdd393160612cb42bcd1cadfa3c43b80c4#commitcomment-3887922

dstillman commented 11 years ago

Did you test this? I tried it last night myself, looking for a quick fix, but the same thing happens.

aurimasv commented 11 years ago

I did. It was working for me last night. I'll check again making sure to clear cache.

dstillman commented 11 years ago

Hmm, I guess this was some weird caching behavior on my end. I can't reproduce this after clearing the Firefox cache, even though I had force-reloaded the page before and was looking at the updated version of the JS source...

dstillman commented 11 years ago

This should be window.location.pathname, though, not document.location.pathname. (I think both work everywhere, but window.location is the canonical form.)

aurimasv commented 11 years ago

Fixed