function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Issue with app custom tab



I had created one App named as "DL",and I have one custom tab named as "Login",this is my landing tab,and the VF page for this tab is 




<apex:page controller="Login" action="{!redirect}">




public class Login{
public PageReference redirect() {
PageReference pr;
Integer total_records;
String email_login;
Http httpProtocol ;
httpProtocol = new Http();
HttpRequest request;
request = new HttpRequest();
String endpoint ;
endpoint = 'http:///Services/validate_user_login.php?id='+email_login;
HttpResponse response;
response = makeCallout(request);
JSONParser parser = JSON.createParser(response.getBody());

while (parser.nextToken() != null)
if ((parser.getCurrentToken() == JSONToken.FIELD_NAME) && (parser.getText() == 'total_records'))
if( total_records>0){

return Page.welcome_login;}
return Page.loginfailure;}




Here I am checking that user is valid or not,if valid it should go to 



<apex:page >
<h1> Welcome</h1>



if user is invalid,then it should go to 



<apex:page >

You do not have a valid account on <a id="theLink" name="theLink" href=""></a>. Please contact the folks at Decisionlink for further assistance</h1>



In my case resulting page is displaying in the home tab of some other application and not under under my app "DL",So how can I solve this problem.