Questions tagged [router]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
25 views

Magento 2 How to create and load custom route page

I want to add a custom redirect type 410 in URL redirect. I have added this in admin section and configured some pages with 410 redirect. Now I want to check the redirect type is 410 and if it is ...
0
votes
1answer
20 views

I am new to magento I want to know where the frontend routers are reflecting in config.xml file custom module?

I am new to magento, i want know in config.xml file there are two routers are there. one is for frontend router and other is admin router,please explain where the frontend routers will reflects. for ...
0
votes
0answers
51 views

Magento 2 core session value unable fetch

Whenever the user hitting this URL http://magento2.com/?SID=322e00bfqm3g6rfpjumah3939n The custom router is calling & the array data is set to an M2 core session variable. But The same variable ...
1
vote
2answers
52 views

Magento 2.3: Forward to another URL without redirecting

I'm writing a module that will accept any Magento URL with /discount/COUPON_CODE appended to the end, set the code in a cookie for later use, and then forward to the URL minus the discount part. So, ...
0
votes
0answers
34 views

Intermittent routing error - routes not being dispatched after upgrade to 2.3

After upgrading from 2.2.5 to 2.3.2, we are facing some HTTP 500 errors on all our routes. We get "Front controller reached 100 router match iterations" in log messages, but no other detail is ...
1
vote
2answers
56 views

Magento 2: URL Rewrite by custom router URL

I am using Magento version 2.2.6 I have already tried with Marketing >> URL Rewrite >> Add New URL Rewrite add custom URL but not working when we use it with question mark in URL, it's ...
0
votes
0answers
19 views

Magento Multi URI or translations for routers frontName in custom module

I have a custom module which response to a URL like this: https://example.com/uri-in-english It's a multi-language store so I need to set another frontName with an equivalent URL. For example: ...
1
vote
0answers
33 views

Modifying the custom controller url to SEO friendly in Magento 2

I have created my custom module for loading the custom template. Here is the code of Vendor/Module/etc/frontend/routes.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
18 views

Magento Router getParams() duplication reach 100 iteration

Not sure why I am having this issue any help appreciated. When I check: $request->getModuleName(), it is already set and $request->getControllerName() is also already set, the only one that isn'...
0
votes
0answers
27 views

Magento 2 cart route redirect to search

We have actually a bug with our Magento 2 instance since 2 months when we click on the cart button (https://ourinstance/checkout/cart/) (with or without something inside) we are redirected to the ...
0
votes
1answer
48 views

Magento 2.3 : How custom router works?

I created custom router in custom extension. For eg. : I created 5 custom extension and in all extension there are custom router available. Now, when i execute url like this : http://127.0.0.1/mg231/...
1
vote
1answer
79 views

Magento 2 : URL Rewrite management

In magento 2, I want to do like this below way : http://php722.local.com/m231/products/category1 => This is category url (Products is main category and category1 is sub-category of products) Now, ...
3
votes
2answers
38 views

Custom router gives me “Front controller reached 100 router match iterations” when matches 404

I created a custom router this is my di.xml <?xml version="1.0" encoding="UTF-8"?> <!-- /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ --&...
1
vote
0answers
84 views

404 on Custom route for admin module

I'm adding a new action in orders grid (it works), but the action route gives 404 error (route error). I have a custom config.xml like this (app/code/local/AAAA/MassActions/etc/config.xml). <...
2
votes
2answers
624 views

How to create custom route in magento2

I have used below code in di.xml <type name="Magento\Framework\App\RouterList"> <arguments> <argument name="routerList" xsi:type="array"> <item name="...
2
votes
2answers
85 views

Grid with multiple Resource Models

I'm trying to use one grid for multiple ResourceModels, so far I've got one grid working fine. I can load the grid up fine using http:{}/admin/grid/grid/ However when i create a new route to load ...
1
vote
1answer
85 views

why my routes.xml is not working in admin or on front end view both

I donot understand why my routes.xml is not working , see this and tell me if you get something wrong in it . thats the code snippet . <?xml version="1.0" ?> <config xmlns:xsi="http://...
1
vote
1answer
216 views

Is it possible to create an admin route that doesn't need the admin “key” in the URL?

I created a new admin route and hooked it up to one of the admin menus for testing. When I click the menu link I go to a URL like this: http://localhost/magento/index.php/myroute/adminhtml_index/...
0
votes
1answer
94 views

404 error in custom module frontname

I installed ExtetionsStore_ContactConstant from the GitHub. After installed I tried to go to frontcontroller url. but I am getting 404 error. Here is my config.xml file code. <frontend> ...
9
votes
5answers
3k views

Magento 2 | Create frontend route

I want to create a custom frontend route. It should have this link: www.mysite.com/myroute <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
2answers
2k views

Magento 2 | Get Post Params

I created my own admin route. This is it's controller: Route controller <?php class Mediabase extends \Magento\Sales\Controller\Adminhtml\Order { public function execute() { ...
2
votes
2answers
720 views

Magento 2 How to over write route FrontName of a module?

I'm trying to extend Magento 2 default module Magente_Contact, but I can't change the frontName, I tried to put in the di.xml, but nothing happens. <config> <router id="standart"> ...
4
votes
2answers
921 views

Add new action to existing module, routing

I am trying to add a new action to the existing module Magento_Customer. My module has the following namespace Custom_AccountReferral I need to add a new action customer/account/referral/ I have ...
1
vote
2answers
797 views

How call Magento 2 module by url (or add route in module)?

I wrote module in Magento 2 and this is my /etc/frontend/routes.xml: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../....
1
vote
0answers
20 views

How to create a shorter route in Magento 2?

Hi so i am wondering how is it possible to create a shorter route other than the usual helloworld/index/index. If I wanted my route to end in [magentodomain]/helloworld/index how would I be able to ...
0
votes
0answers
31 views

Module route with subdirectory handling

I'm trying to create a module with a route that handles filter. For example: http://www.example.com/routename/color/blue/size/small How can I setup the route so that it handles all child directories/...
0
votes
1answer
308 views

How to rewrite a router url?

I search the entire web to found solutions for rewriting an url from a custom action but nothing works. I tried to put into global this : <rewrite> <artist_list_index> ...
1
vote
2answers
311 views

magento 2 - custom router throws Front controller reached 100 router match iterations error

I am trying to build a module that has a custom front-end router on magento 2.1.12. I am following magento doc & I am using the inchoo custom router example. The problem is the route (MY-SITE/...
0
votes
1answer
171 views

Magento 2: toolbar url problems in custom module with custom router

I have the custom module with product collection and custom router. for example i want to have link https://domain.com/gaires/something Router code: namespace UseApp\Gaires\Controller; class Router ...
0
votes
3answers
477 views

Magento 2 - get key

when I click on orders and then on shipments, this URL is generated: mysite.com/admin/sales/order/index/key/b1b504c4b09c982d420f001572349abbde9837cbc363e03c669099baa537af0e/ How can I get the key ...
1
vote
1answer
235 views

What is the URL for this route?

I created a module with following admin routes.xml /app/code/UV/Bestellung/etc/adminhtml/routes.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
2
votes
0answers
112 views

M2 - one frontend for one store in routes.xml

How can I have multiple route available for one module but different store ? I have one module that is going to be used for several stores (us / de / fr etc..) I would like to have something like : ...
2
votes
1answer
38 views

Custom created Magento controller link to 404

after no sleep night full of googling and trying things, I need your help. My created controller for Magento 1.9, is inaccessible at the address ("whoops, our bad..." page): http://magento1.at/...
0
votes
1answer
33 views

2 routers in different module for the same mage controller

I have a question. I would like to rewrite a method of the controller Mage_Checkout_OnepageController. The method is: saveBillingAction But I found in other module already a router on this ...
0
votes
1answer
51 views

Custom routes with GET Params : HTTP RESPONSE 302 ; how to get GET params values?

etc/frontend/routes.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd"> &...
0
votes
1answer
19 views

Magento2 How to avoid custom router?

Scenario: =>I am using one custom page as custom-router in magento2 to redirect between 3 pages "Page1,page2,page3" according to value of $currentPage variable, saved in session. =>These three pages ...
0
votes
1answer
33 views

Magento Plugin 404 - Admin

Hi guys recently updated Magento to the latest core and I am having an issue with a plugins page in the admin area. I am getting a 404 so I assumed it was an admin route issue. I changed: <admin&...
0
votes
1answer
27 views

Magento 2.1.8 Custom Module Routes

I am trying to create new pages for a custom module I am developing. the base page for my module is: www.mywebsite.com/forum I wanted to add three more pages: www.mywebsite.com/forum/category www....
1
vote
1answer
393 views

Consistent 404 from custom module URL… Why?

I'm trying to make a really simple module to add the Category Thumbnail back to Magento 2.2.1 and having a real time with it. I've been working on this simple issue for many hours, and read many pages ...
6
votes
1answer
2k views

How to get list of all routes in Magento 2?

Is it possible to get the list of all routes in a Magento 2 environment? I am looking some command-line tool, if there is any? Note: I had a bin/rails routes command to list all the routes in rails ...
1
vote
1answer
871 views

Why to keep id and frontName same in magento 2 routes config file?

Just curious about Why to keep id and frontName same in magento 2 routes config file ? Below is Sample frontend route xml config file. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3....
1
vote
1answer
60 views

Customize component URL

When creating a new component, the route depends completely on the directory structure, like so: 'module/controller/action' Seems a little unnecessarily strict; can anyone point me to a means of ...
1
vote
1answer
108 views

Magento2 Creating admin route causes exception

I've setup a etc/adminhtml/routes.xml for my module with the following code. <?xml version="1.0" encoding="UTF-8"?> <config> <router name="admin"> <route id="blog" ...
0
votes
0answers
16 views

Assign a template from a place other than local.xml

I'm creating a custom page for some categories, I'm filtering the different blocks that I need to use in the catalog/category/view.phtml, but in some categories I wanna use a template with 1 column, ...
1
vote
1answer
41 views

Dont use indexcontroller if no url match

I have this FAQ module with configurable url in backend. But my indexAction also catches the default url at mywebsite.com/faq and in this case I only want it to catch mywebsite.com/faqurl which I has ...
1
vote
0answers
89 views

Admin grid for custom Model

I am making a module with a custom grid I am getting stuck on the router why am I getting a 404? config.xml: <admin> <routers> <adminhtml> <args> ...
2
votes
1answer
1k views

Magento 2 : Override front-end router

I try to override a router, and I encounter some difficulties. I try an override in the following way: In my module2 DI : namespace2/module2/etc/di.xml <?xml version="1.0"?> <config xmlns:...
0
votes
1answer
527 views

Magento 2 adminhtml getUrl not working as expected

I want to make a post request to a backend custom controller, which does not work My controller resides in Namespace/ModuleName/Controller/Adminhtml/Discount/Index.php <?php namespace Namespace\...
0
votes
1answer
424 views

Magento 1.9 Block is not showing the data on front page in custom module

Created a module for front-end to show data from custom table but it is showing a blank page. Here is the config.xml file: <?xml version="1.0"?> <config> <modules> <...
0
votes
2answers
492 views

Magento 1.9 Custom Module Front rout was going to 404, Now Showing Blank page instead of showing real information

Created a custom module with admin grid and a front end rout admin section is working fine but when i visit the front end page it was going to 404 that issue is fixed now Showing Blank page instead of ...