开发者

How to fix require.js's version querystring to not be put after a # (anchor) component

Require.js seems to be adding ?v= at the end of my http requests for versioning.

Unfortunately, it is adding it blindly to开发者_运维技巧 the end of the URL. It should be inserting the query string right before any '#' characters (anchor) if present

The server of course should ignore any query string found to the right of the hash.

This seems to be the issue, breaking our current instance of AddThis's stats.

Does require.js provide a way to remedy this?

EDIT: This was not at all a require.js issue, and I have removed the require.js tag. It turned out to be internal code creating this.


Sounds like a bug in the library. See if it's mentioned here: https://github.com/jrburke/requirejs/issues if not, report it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜