ฉันกำลังพยายามเพิ่มลิงค์ที่กำหนดเองในการนำทางบัญชีลูกค้า ลิงก์ที่กำหนดเองของฉันกำลังแสดงอยู่ในการนำทางบัญชีและทำงานได้เช่นกัน แต่ก็ไม่ได้แสดงว่าเป็นแบบใช้งาน / เป็นปัจจุบันเมื่อคลิก
ด้านล่างเป็นรหัสที่ฉันมี:
/app/code/Namespace/Support/view/frontend/layout/customer_account.xml
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="customer_account_navigation">
            <block class="Magento\Framework\View\Element\Html\Link\Current" name="customer-account-navigation-suppport-ticket-link" after="-">
                <arguments>
                    <argument name="path" xsi:type="string">support/customer/index</argument>
                    <argument name="label" xsi:type="string">Support Ticket</argument>
                </arguments>
            </block>
        </referenceBlock>
    </body>
</page>
/app/code/Namespace/Support/Controller/Customer/Index.php
<?php
namespace Namespace\Support\Controller\Customer;
use Magento\Framework\App\Action;
use Magento\Framework\Exception\NotFoundException;
use Magento\Framework\Controller\ResultFactory;
class Index extends \Namespace\Support\Controller\Index
{
    /**
     * Show customer tickets
     *
     * @return \Magento\Framework\View\Result\Page
     * @throws NotFoundException
     */
    public function execute()
    {
        /** @var \Magento\Framework\View\Result\Page resultPage */
        $resultPage = $this->resultFactory->create(ResultFactory::TYPE_PAGE);
        return $resultPage;
    }
}
/app/code/Namespace/Support/view/frontend/layout/support_customer_index.xml
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <update handle="customer_account"/>
    <head>
        <title>Support Ticket</title>
        <css src="Namespace_Support::css/styles.css"/>
    </head>
    <body>
        <referenceContainer name="content">
            <block class="Namespace\Support\Block\TicketList" name="ticketViewList" template="Namespace_Support::list.phtml" />
        </referenceContainer>
    </body>
</page>
                  แจ้งให้เราทราบหากมีส่วนช่วย
                
                
                  
                    —
                    Codrain Technolabs Pvt Ltd 
                    
                  
                
              
                  @YagneshPonkiya ขอบคุณสำหรับการตอบกลับอย่างรวดเร็ว ใช่มันใช้งานได้ ใส่ความคิดเห็นของคุณเป็นคำตอบเพื่อที่ฉันจะได้ยอมรับ
                
                
                  
                    —
                    Shyam 
                    
                  
                
              
                  @YagneshPonkiya นอกจากนี้คุณสามารถบอกฉันทีว่าปัญหาคืออะไร ทำไมเราต้องเปลี่ยนสิ่งนั้น ขอบคุณล่วงหน้า.
                
                
                  
                    —
                    Shyam 
                    
                  
                
              
                  @Shyam คุณได้ทำโมดูลนี้เสร็จหรือยัง ฉันกำลังสร้างฟังก์ชันการทำงานเดียวกันในโครงการ M2 ของฉัน ดังนั้นคุณช่วยแนะนำฉันว่าฉันจะสร้างฟังก์ชันนี้ได้อย่างไร ขอบคุณ
                
                
                  
                    —
                    mageDev0688 
                    
                  
                
              
<argument name="path" xsi:type="string">support/customer/index</argument>เป็น<argument name="path" xsi:type="string">support/customer</argument>