ionic-framework
ionic-framework copied to clipboard
bug: Bug BB10 ion-item href unsafe prefix
Type: bug
Platform: mobile webview
Hi guys
I have a problem with routes that are generated in my application in blackberry this before putting a text 'unsafe:local:///' film what generates conflict in navigating me as I remove this 'unsafe' to stay 'store: //'

thanks
Sounds similar to this
https://github.com/driftyco/ionic/issues/1066
We're not going to be supporting Blackberry or adding anything in particular for it. You can edit your href sanitization to make it safe. https://github.com/driftyco/ionic/blob/master/js/angular/service/ionicConfig.js#L654
Thanks
the solution is similar but was added on unsafe and local, app.js
.config([
'$compileProvider',
function(
$compileProvider
){
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|tel|ftp|mailto|file|ghttps?|ms-appx|x-wmapp0|unsafe|local):/);
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|content|blob|ms-appx|x-wmapp0|unsafe|local):|data:image\//);
}])