Open
Description
We are using history 1.7.1. We have cases where a period is part of the a hash parameter value. In onPopState in History.js it calls replaceState because it says it found a state. This causes a rewrite of the url from:
to
http://localhost:5000/search/record/count=20&query=+givenname:patrick~%20+surname:jones.~
All because it is thinks it is a traditional url. Here is the function:
History.isTraditionalAnchor = function(url_or_hash){
// Check
var isTraditional = !(/[\/\?\.]/.test(url_or_hash));
// Return
return isTraditional;
};
Why isTraditionalAnchor looking for a period? I don't understand how a tradition anchor is determined by a / . or ?
At any rate, it appears to be a bug unless I am not understanding this. It is not fixed in 1.8.0 either.