fix($location): ignore url start at "javascript:" and "mailto:"

It will make the legacy browsers go wrong place