I want to jump from one UI_COMPONENT to another UI_COMPONENT through layout file and hopefully passing URL in button

This is my UI_COMPONENT file

<?xml version="1.0" encoding="UTF-8"?>
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
            <button name="duplicate" >
            <url path ="duplicate/index/index"/>
                <label >duplicate </label>


and want to call my layout but it gives me 404 error this is my layout file name "duplicate_index_index"

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<update handle="styles"/>
    <referenceContainer name="content">
        <uiComponent name="duplicate_detail"/>
  • is your controller present? – Philipp Sander Mar 14 '19 at 16:25
  • 1
    check your directories you must have placed files in wrong directory. – Ghulam.M Mar 15 '19 at 7:48
  • i forgot to put my routes files in to proper directory ... etc/adminhtml/routes.xml – Asad Ullah Mar 15 '19 at 10:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.