Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [router]

The tag has no usage guidance.

1
vote
2answers
44 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 ...
0
votes
0answers
23 views

Magento 2 Show Disabled Product for specific customer or group by url

I am creating a module for user role. I need some functionality so that a customer who is also an admin can open the disabled product in frontend. And check if its looking good and enable it from ...
0
votes
0answers
13 views

Translating urls (e.g. wishlist)

I want make urls to be all in polish language (wishlist, checkout etc.). I'v searched forum and I found some solutions: create router that will redirect to orignal controller make redirect url in ...
1
vote
1answer
48 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
60 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> ...
5
votes
4answers
320 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
307 views

Magento 2 | Get Post Params

I created my own admin route. This is it's controller: Route controller <?php namespace UO\Mediabase\Controller\Adminhtml\Order; class Mediabase extends \Magento\Sales\Controller\Adminhtml\...
1
vote
2answers
219 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"> ...
3
votes
2answers
277 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
214 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
16 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
17 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
0answers
26 views

Create a frontend controller with 'adminhtml' app state code

I know this doesn't sound right, but it'll make sense once you read this: I have a script that loads my magento install with app state code adminhtml and lets me run mass action commands (like ...
0
votes
1answer
82 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> ...
0
votes
0answers
58 views

magento2 extend customer route with customer module

I have loyalty offers created for the customer in my custom module and i want to extend it with customer route frontname so that the url will be like customer/loyalty/typeofoffer and any url start ...
0
votes
1answer
46 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
78 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
90 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
228 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
68 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 : ...
1
vote
1answer
27 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
23 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
29 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
0answers
57 views

How can I override catalog/category route in Magento 2 [duplicate]

I want to override/redirect the catalog/category route to something else, Ex: amp/category and show a different layout for that route. How can I do that in Magento 2? should I listen to any event or ...
0
votes
1answer
31 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
26 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
196 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
836 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
347 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
43 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
55 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
37 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
74 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
589 views

Magento 2 : Override frontend 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
320 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
226 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
325 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 ...
0
votes
1answer
493 views

302 Redirects for a specific store view

I have a site with 2 store views. One of the views (lets call it store view X), should be accessible to only certain users, and parts of the store should be restricted when this store view is enabled....
1
vote
2answers
202 views

Can I have a router frontname with a wild card

I have built a custom extension for a client for a landing page. This extension works perfectly with everything is does but I would like to support multiple frontnames in the router so that this one ...
0
votes
1answer
112 views

Custom Module Nested Router Frontname

I have setup a custom module in my magento store (CE-1.9.0.0) with the following in my config file: <?xml version="1.0"?> <config> <modules> <Company_Custom> ...
3
votes
1answer
773 views

Magento 2 di.xml merging with arguments

I've been working through Magento U's Fundamentals of Magento 2 Development course, and I'm currently working on the second unit, which covers request processing. This morning, I was finishing the ...
2
votes
0answers
355 views

Create Dynamic URL by controller

I need the url structure like this : From this url :- http://localhost/magento27/review/product/view/id/936/ To this url :- http://localhost/magento27/women/review/love-this-product/936 women :- ...
0
votes
1answer
181 views

Where does edit button go in Magento?

In my shopping cart there is an edit button for each product! I would like to know how do I get to that phtml page for edit? I don't seem to see an edit.phtml or such I'm passing in a parameter from ...
0
votes
3answers
264 views

New Admin Module created showing 404 error

I'm building an Admin module for the first time by following this tutorial I have created everything & the module is showing in the backend, but when I clicked the submenu of my module, instead ...
3
votes
1answer
262 views

Magento Multiple frontName for routers adminhtml

Is there any way to assign multiple frontName name for routers adminhtml ? Basically i have 3 admin role Administrators (default) Salesadmin Sabadmin now i want to enable admin panel by 3 url /...
3
votes
1answer
551 views

Magento 2: the phpserver/router.php file

So according to the README, the purpose of this file is to implement the PHP built-in webserver. However, when you open the file, you can see the following from line 35: /** * Caution, this is very ...
1
vote
1answer
2k views

Mass Action in Order Grid

I want to create new mass action inside Order grid which will create new Shipment but I have problem with my action. When I click submit button my action don't work but only redirect me on homepage. ...
1
vote
1answer
1k views

Ajax form submit: Magento redirects to controller instead processing response

I'm working on a newsletter signup form (following this tutorial). When I hit the signup button Magento redirects me to the "form action url" and displays the response on a white page only: {"message"...