Add regex to change error-causing XML character in a URL
This commit is contained in:
parent
0b85dfba03
commit
389cd74ba5
|
@ -241,8 +241,18 @@ export class ResultLandingService {
|
|||
let url;
|
||||
if(!Array.isArray(instance['webresource'])) {
|
||||
url = instance['webresource'].url;
|
||||
} else{
|
||||
if(url.includes('&')) {
|
||||
let regExp = /&/gmu;
|
||||
let newUrl = url.replace(regExp, '&');
|
||||
url = newUrl;
|
||||
}
|
||||
} else {
|
||||
url = instance['webresource'][0].url;
|
||||
if(url.includes('&')) {
|
||||
let regExp = /&/gmu;
|
||||
let newUrl = url.replace(regExp, '&');
|
||||
url = newUrl;
|
||||
}
|
||||
}
|
||||
|
||||
/**********************************************************/
|
||||
|
|
Loading…
Reference in New Issue