URL has & instead of %26 resulting so the query is not working

John Kelly
Tera Guru

Hello,

Appreciate your expertise as I am feeling a bit stuck.

We have an instance of  simple list widget which is reporting on records belonging to our divisions. When selecting the 'View All ' hyperlink to see more than 5 records in a list (Data table from URL Definition) we are seeing an issue with divisions that have an & in their name e.g. 'Risk & Analytics'.

In exploring this it seems that the URL that is being created is not recognising the & as text - if the & is manually changed on the URL when interactive to %26 the system displays the correct records.

So in essence the manual fix is pretty strraight forward - the relevant part of the URL 'divisionINSupervisory%20Approach%20and%20Systems,Risk%20&%20Data%20Analytics' becomes in bold 'divisionINSupervisory%20Approach%20and%20Systems,Risk%20%26%20Data%20Analytic'

All good.

However I have been unable to figure out how to change the URL in the widget. I have read options.filter into another property  options.newFilter on the data object, changed the & to %26 and it does not seem to make a difference when ng-href uses the options.newFilter.

thanks for your assistance .. John

 

 

1 ACCEPTED SOLUTION

John Kelly
Tera Guru

I managed to resolve this - had a typo error. The solution was asoutlined above to replace the & character with %26 before building the URL for href.

View solution in original post

1 REPLY 1

John Kelly
Tera Guru

I managed to resolve this - had a typo error. The solution was asoutlined above to replace the & character with %26 before building the URL for href.