Is there any method to hide URL parameters and then read the hidden parameters with code? For example I have this in my page: "example.com/transaction.html?price=10".
I have tried to encode with Base64, but it doesn't work as expected (encoding works, decoding not), so I want to hide either the price=10 or transaction.html?price=10.
I heard that AngularJS could hide parameters, but can it read "hidden" parameters or how does it work?
Thanks in advance!
function getUrlVar() {
var result = {};
var location = window.location.href.split('#');
var parts = location[0].replace(/[?&]+([^=&]+)=([^&]*)/gi,function(m,key,value) {
result [key] = value;
});
return result;
}
price=10to make it meanless to a user but your server will be able to de-hash and understand it (or your client side js will hash/de-hash too)?www.something.combut still the data is loaded or when you are fetching the data the address should be encoded that no one is able to understand ?