I have a method where I am fetching the Id from the URl and using page reference method as below.
Public test_method() {
Id = ApexPages.currentPage().getParameters().get('id');
PageReference returnPage = new PageReference('/lightning/r/Lead/' + ID+ '/view');
}
Our static code analysis is giving me Improper Control of Resource Identifiers ('Resource Injection'). Is this a false positive ?
Thanks!