I'm trying to use dot (.) in query string parameter but its not working.
This URL is working fine:
But not this one as it contains a dot in a parameter:
When I'm trying to open above URL (with dot), it just prints:
Cannot GET /search-result?majTFMin=0&majTFMax=100&majDOMCFMin=0&majDOMCFMax=100&majRefDomainsMin=0&majRefDomainsMax=100&majRefIPsMin=0&majRefIPsMax=100&majRefDomainsEDUMin=0&majRefDomainsEDUMax=100&majRefDomainsGOVMin=0&majRefDomainsGOVMax=100&selectedTLDs=co.uk
And nothing else, not even any HTML tags(has checked that in view source)
I have read lots of posts which says that . can be used in query string without encoding, but I don't understand why its not working here. I think it has some issue with AngularJS.
I'm using ui-router for state change and passed value to controller.
Any help would be appreciated.
If you are using connect-history-api-fallback on your server (like lite-server does), the URLs with a dot are not rewritten by default.
connect-history-api-fallback code
Starting with
connect-history-api-fallback
version 1.2.0 the URLs with dots are allowed and you can solve this problem by using a a rewrite rouleExample
If your URL with dot is
/search-result
and you angular app lives in theindex.html
page you can add a rewrite rule to the connect-history-api-fallback like this