Skip to main content

Questions tagged [routes]

0 votes
1 answer
104 views

For example in My/Module/Controller/Index.php when I access https://website/module it won't work and I'll be redirected on 404 "Whoops, our bad..." page. But if I use My/Module/Controller/...
Nagasaki's user avatar
  • 105
0 votes
1 answer
450 views

How can I add a custom link to 'sales/order/view/order_id/123456' adding an slash after the order_id with route name "download" so it becomes sales/order/view/order_id/6710/download My ...
David Buik's user avatar
0 votes
1 answer
338 views

I have one online store with two store views, English and French. How can I add different routes per store view in a custom module on a Magento 2.4 store, following the attached example? EN: www....
Kloppo's user avatar
  • 95
1 vote
1 answer
144 views

I am working on a custom page module and want to make a custom route however I would like to use the catalog_category_view.xml layout, instead of the [module_name]_index_index.xml needed for my route ...
A. Andersen's user avatar
1 vote
1 answer
1k views

I am working with magento 2.4.4-p1. I got an error on calling the below graphQL query on the site. query Route($url: String!) { route(url: $url) { redirect_code relative_url ...
Jancy Abraham's user avatar
0 votes
2 answers
730 views

I want create controller for specific path, but i can't know how i can do this. My controller must work with path like: site.com/usa/some-review/dynamicParam My path for controller: site.com/some-...
David Young's user avatar
0 votes
1 answer
408 views

I want to get all list of the front routers in Magento2 I have checked with default Magento2 vendor/magento/framework/App/Route/Config.php's _getRoutes that return all the front routes
Charvi Parikh's user avatar
0 votes
1 answer
76 views

I'm trying to create an admin route and the directories are: app/code/<my_company>/<my_module_name>/Controller/Adminhtml/Index/Index the code is namespace Mastering\SampleModule\...
Ammar Joma's user avatar
3 votes
1 answer
1k views

I have inherited a Magento 2 site, and I am trying to find the rest api that is handling the checkout. The route is <magento_site>/rest/default/V1/<checkout _information>. As is, i have ...
MCattaneo's user avatar
0 votes
1 answer
295 views

I want to redirect a custom URL and change the URL path ONLY. If my URL is www.domain.com/about-company or www.domain.com/product-a-faq I want these to be shown in different URL examples -> www....
Tj1997's user avatar
  • 47
0 votes
3 answers
90 views

This is registration.php <?php use Magento\Framework\Component\ComponentRegistrar; ComponentRegistrar::register(ComponentRegistrar::MODULE,'Mymodule_Newmodule1', __DIR__); routes.xml file is ...
pon aravind's user avatar
1 vote
0 answers
224 views

I have used this url to change it but i am keeping getting the same erros https://magento.stackexchange.com/a/209478/96152 i have a custom routes.xml <?xml version="1.0"?> <config ...
Tj1997's user avatar
  • 47
0 votes
1 answer
293 views

I am using Magento 2 Magefan blog extension. The blog post URL is generated as below. http://store-url/blog/post/hurry-xmas-with-family But I want URL as below and it show the content of the above URL ...
Lokesh Naik's user avatar
1 vote
0 answers
834 views

It's quite straight forward to check if a request url exists in a store scope via url_rewrites. However, I'm wondering if there is a way to check if a custom route exists (as they don't have an entry ...
Alvin Nguyen's user avatar
0 votes
1 answer
740 views

Can anybody for the love of god help me with the syntax here. I feel like i've tried everything and everytime i try to push this to the magento cloud it complains about something or another. Here's my ...
Singleton's user avatar

15 30 50 per page