Extra Form
PHP PHP 5.6
CMS XpressEngine
<block cond="!$is_logged && !$act" >
<load target="../css/default.css" />
<div class="isis_login_bg" style="<!--@if($addon_info->is_z_index)-->z-index:{$addon_info->is_z_index};<!--@end-->    <!--@if($addon_info->is_bg)-->background-color:{$addon_info->is_bg};<!--@end--> <!--@if($addon_info->is_bg_t)-->filter: alpha(opacity={$addon_info->is_bg_t}0);opacity: 0.{$addon_info->is_bg_t};<!--@end-->"></div>
<div class="isis_login_box" style="z-index:{$addon_info->is_z_index};"|cond="$addon_info->is_z_index">
    <div class="isis_login">
        <load target="../filter/login.xml" />
        <!--// login -->
      <div class="s_login"><!-- <h1>{$lang->cmd_login}</h1> -->
            <img src="../css/cy.png">
            <p class="info">{$addon_info->is_info}</p>
            <div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
                <p>{$XE_VALIDATOR_MESSAGE}</p>
            </div>



            <?php
                $http_host = $_SERVER['HTTP_HOST'];
                $request_uri = $_SERVER['REQUEST_URI'];
                $url = 'http://' . $http_host . $request_uri;
            ?>
             <!-- 이전 주소값은 아주 잘 나옴.. -->           
            <form id="account-signup" action="/" method="post" ruleset="@login" >
            <input type="hidden" name="success_return_url" value="{$referer_url}" />
                <fieldset>
                <input type="hidden" name="act" value="procMemberLogin" />
<!--            
<input type="hidden" name="success_return_url" value="{htmlspecialchars(getRequestUriByServerEnviroment(), ENT_COMPAT | ENT_HTML401, 'UTF-8', FALSE)}" />
<input type="hidden" name="success_return_url" value="{$referer_url}" />
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" /> 
여러가지 다 해봄 ㅠㅠ -->


                     
                    <input name="user_id" class="s_text" type="text" title="<!--@if($member_config->identifier != 'email_address')-->{$lang->user_id}<!--@else-->{$lang->email_address}<!--@end-->" placeholder="<!--@if($member_config->identifier != 'email_address')-->User ID<!--@else-->email address<!--@end-->" />
                    <input name="password" class="s_text" type="password" title="{$lang->password}" placeholder="Password"/>
                    <!--<input type="checkbox" name="keep_signed" id="keep_signed" value="Y" />
                    <label for="keep_signed">{$lang->keep_signed}</label> -->
                    <input type="submit" class="s_btn" value="{$lang->cmd_login}" style="background-color: {$addon_info->is_btn};"|cond="$addon_info->is_btn"/>
                    <div class="help">
                       <a href="{getUrl('act','dispMemberSignUpForm')}">{$lang->cmd_signup}</a>
                        <a href="{getUrl('act','dispMemberFindAccount')}">{$lang->cmd_find_member_account}</a>
                    </div>
                </fieldset>
            </form>
            <div></div>
        </div>
    </div>
</div>

</block>


로그인해! 애드온을 잘 사용 중입니다.

https://xe1.xpressengine.com/index.php?mid=download&package_id=22753546

 

 

그런대 referer_url 이 작동하지 않아서 로그인 후에 꼭 뒤로가기를 눌러야 원하는 페이지가 나옵니다. ㅠ

질문글들을 찾아서 수정해 보았으나 되지 않아 질문 드립니다.

 

특히 참고한 글 :  https://xetown.com/questions/36746

 

name="success_return_url" value="{$referer_url}"  어떻게 바꾸어 주어야 할까요?