Questions tagged [routes]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
21 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 ...
user avatar
0 votes
2 answers
22 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-...
user avatar
0 votes
1 answer
94 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
user avatar
0 votes
1 answer
22 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\...
user avatar
2 votes
1 answer
241 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 ...
user avatar
0 votes
1 answer
49 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....
user avatar
  • 45
0 votes
3 answers
49 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 ...
user avatar
1 vote
0 answers
59 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 ...
user avatar
  • 45
0 votes
1 answer
109 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 ...
user avatar
1 vote
0 answers
382 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 ...
user avatar
0 votes
1 answer
441 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 ...
user avatar
8 votes
1 answer
797 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.
user avatar