[keycloak-dev] need angular js help!

Bill Burke bburke at redhat.com
Wed Oct 8 12:44:26 EDT 2014


ARG!!!!  Now I'm stuck.  Seems to be a bug in angular that causes '/' to 
be decoded automatically...

https://github.com/angular/angular.js/issues/5645

SAML client ids are all URLs.



On 10/8/2014 12:24 PM, Bill Burke wrote:
> In other words, the filter gets called, but angular seems to decode it!
>    WTF!!!! ARG!!!!
>
> On 10/8/2014 12:14 PM, Bill Burke wrote:
>> I can't figure out how to encode a link in a html page for angular js
>>
>>                    <td><a
>> href="#/realms/{{realm.realm}}/applications/{{app.name |
>> encodeUri}}">{{app.name}}</a></td>
>>
>>
>> I wrote a filter to do this "encodeUri" that is getting invoked, but the
>> link still is not encoded when displayed.  ARG!!!!
>>
>> module.filter('encodeUri', function($window) {
>>        return function(str) {
>>            var str = encodeURIComponent(shit);
>>            return str;
>>        };
>> });
>>
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com


More information about the keycloak-dev mailing list