thinkphp Jump link is not preceded by a root path

Source: Internet
Author: User
Keywords Root Path Jump thinkphp php
Root Path Jump thinkphpphp

 showSuccess("注册成功",0,url("index","account"));

This is the original registration successful after jumping to a page
Now I want to jump to an external page but if only URL (www.xxxxx.com) is changed
And eventually it's www.genlujing.com/www/xxxxx/com.
It's definitely not going to work.

 function showSuccess($msg,$ajax=0,$jump='',$stay=0){    if($ajax==1)    {        $result['status'] = 1;        $result['info'] = $msg;        $result['jump'] = $jump;        header("Content-Type:text/html; charset=utf-8");        echo(json_encode($result));exit;    }    else    {        $GLOBALS['tmpl']->assign('page_title',$GLOBALS['lang']['SUCCESS_TITLE']." - ".$msg);        $GLOBALS['tmpl']->assign('msg',$msg);        if($jump=='')        {            $jump = $_SERVER['HTTP_REFERER'];        }        if(!$jump&&$jump=='')        $jump = APP_ROOT."/"; // 这里去掉也不行 还是会加上根路径        $GLOBALS['tmpl']->assign('jump',$jump);        $GLOBALS['tmpl']->assign("stay",$stay);        $GLOBALS['tmpl']->display("/Success.html");        exit;    }}

Success.html is used
Jump to

How to change between the above to jump to the external page

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.