Questions tagged [routes]
The routes tag has no usage guidance.
16
questions
0
votes
1
answer
64
views
Can't access Index.php in Controller
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/...
0
votes
1
answer
178
views
Add Custom Link to Sales Order View Admin Panel
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 ...
0
votes
1
answer
184
views
Magento 2 different routes per store view
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....
0
votes
1
answer
61
views
Route to Existing Layout
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 ...
1
vote
1
answer
663
views
Magento 2 GraphQL Error: Undefined property: GraphQL\\Language\\AST\\FragmentSpreadNode::$selectionSet
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
...
0
votes
2
answers
445
views
Magento 2 How create front controller with a specific path?
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-...
0
votes
1
answer
304
views
Magento 2 frontend Router list
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
0
votes
1
answer
54
views
admin/ custome controller returns 404
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\...
3
votes
1
answer
769
views
Find Routes File For Magento 2 Rest API
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 ...
0
votes
1
answer
103
views
Magento 2 CMS Page URL redirect 2.3.5
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....
0
votes
3
answers
64
views
Magento 2.4.2 Modules won't work
This is registration.php
<?php
use Magento\Framework\Component\ComponentRegistrar;
ComponentRegistrar::register(ComponentRegistrar::MODULE,'Mymodule_Newmodule1', __DIR__);
routes.xml file is ...
1
vote
0
answers
183
views
Magento 2 custom routing frontend not working (100 router match iterations)
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 ...
0
votes
1
answer
219
views
Route blog URL to custom route
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
...
1
vote
0
answers
698
views
Magento 2 - How to check if custom route exists
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 ...
0
votes
1
answer
529
views
Redirects using routes.yaml in the root folder .magento/routes.yaml
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 ...
8
votes
1
answer
1k
views
Magento 2 debug router
Is there some functionality to view all routes same like Symfony(router:debug) which shows us all the available routes(URL) in the current application.