AngularJS: Link with hash gets urlencoded -


i have link http://localhost:8000/#?4047=27.20#4047

if paste in , reload page, works fine.

if make link like

<a href="{{ location.$$absurl }}" target="_blank">same</a> 

it works fine.

if paste link email or notes software, link looks fine. but, when click it, gets urlencoded , fails with

http://localhost:8000/#?4047=27.20%234047 

so, $location.hash() empty.

i'm working chrome. safari similar worse. paste in http://localhost/#/?9189=668.00&7010=128.00#7010,9189 , gets changed http://localhost/#/?9189=668.00&7010=128.00%237010,9189 , app breaks.

firefox seems not encode # , handle how wanted. hrm.

i prefer put somewhere in configuration, maybe. but, purposes, can "correct" url, if needed, on in controller.

// aint nobody got time fo dat $location.url($location.url().replace('%23', '#')); 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -