Questions tagged [routing]

Denotes questions related to the routing mechanism of Magento

27 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
1answer
241 views

Using the secret admin frontname in a new adminhtml router

I have a module that uses an abnormal naming convention. Instead of NAMESPACE_MODULE it uses NAMESPACE_MODULE_SUBMODULE: $ find app/code/community -type f app/code/community/Acme/ModuleName/Bar/etc/...
3
votes
0answers
101 views

Magento 2 PWA Venia - how to set 404 page

I'm using Venia from PWA Studio and I want to create redirect to my 404 page when someone use wrong link for example "http://venia.loc/wrong-route". Page on dev environment when running "watch:venia" ...
2
votes
0answers
19 views

Changing config/connection type for consumers

I would like to set this consumers: 'async.operations.all' connection type from rabbitmq (amqp) to crontab+sql (message queue & mysqlmq)as default so my setup of external crontab can execute . ...
2
votes
0answers
60 views

Newsletter subscriber custom EDIT route Magento 2.3

I am having custom edit route for core module Magento_Newsletter Subscriber. When I access Edit route loader keeps spinning and doesn't stop. In nginx log I got: 2019/02/11 14:55:33 [error] 15820#...
2
votes
0answers
97 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
0answers
161 views

How does “front name” of a module affect its routing?

This is a question that comes to me as i faced below situation: I had an extension with front-name: "csmymodule". I changed its front-name with: "mymodule". But I notice that both these urls work: ...
2
votes
1answer
920 views

Magento 2: How to define scope in di.xml & Router.php

I'm using Magento 2 CE Version 2.1.0. app\code\Custom\Module\etc\frontend\di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
0answers
31 views

Where is this text coming from at the end of my checkout URL?

I'm adding a "buy now" button to my site. I'm using the code from here. When I click the button, my site tries to go to example.com/checkout/#93=4, which then results in it going to example.com/...
1
vote
1answer
517 views

Magento 2 Front controller reached 100 router match iterations issue

I am not able to access back-end and front end working fine. I have disabled and removed custom modules, but still it's persist. Help me! My magento version 2.1.6 When I print anything inside the ...
1
vote
0answers
76 views

Magento 2 custom routing error. stuck in loop?

I'm having some trouble with Router.php. I'm guessing it's the line(s) where I check the URL and return false? Exception #0 (LogicException): Front controller reached 100 router match iterations ...
1
vote
0answers
869 views

Magento 2:ERROR: Front controller reached 100 router match iterations

I got error when trying to do like this extention http://inchoo.net/magento-2/routing-in-magento-2/ it work ok but when I add a foreach to check the url, I got error Front controller reached 100 ...
0
votes
0answers
12 views

Magento 2 Intercept Route

I got a small question. I have custom products/categories in my shop. Now depending on the user, it may or may not visit the specific category or product. Is there an event or another way to 'hook' ...
0
votes
0answers
9 views

Where is the code that assigns the browser's URL when clicking a button?

When I click a button that sends me to a controller action in Magento, where is the code that directs the browser to a new URL? I've been trying to trace the code with the debugger, but I can't find ...
0
votes
1answer
32 views

New route not working (2.2)

I am frustrated. I'm unable to add an ajax route in Magento 2.2 no matter what I try, I get a 404. routes.xml: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
1answer
37 views

Magento2 admin form routing issue

I'm trying to create a Magento extension but I'm getting an issue when accessing a custom form for submitting a new entry. The grid for showing results works fine but clicking the add new button from ...
0
votes
0answers
127 views

Magento 2: admin base URL for UI Components

There is BASE_URL variable on the adminhtml pages (see ./vendor/magento/module-backend/view/adminhtml/templates/page/js/require_js.phtml): <html> <head> <script> ...
0
votes
0answers
29 views

create a page according with the identifier URL

I have created a custom grid and added identifier field, now how to create a url like http://domain.com/identifier in frontend please find the below screenshot Thanks
0
votes
2answers
27 views

Form submission

i'm new to magento. I trying to make a form to add some user to my database (not with form from magento, i need to check if the user exists in my xml file...). When I submit my form, I need to check ...
0
votes
1answer
146 views

Getting all Magento 1.9 controller urls

I've inherited a large magento application with a huge number of extensions, and have been tasked with finding all accessible urls which match certain criteria (meaning I must look manually). I'm ...
0
votes
1answer
403 views

Magento doesn't support camelCase in URL/route?

If you are declaring your router in etc/adminhtml/routes.xml with similar way <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
2answers
22 views

Magento 2 : How to Copy whole admin panel in custom route

I want to create the whole admin panel in my custom route, like here is the default method is 192.168.1.57/magento/admin to 192.168.1.57/magento/demoroute with all the functionalities of admin.
0
votes
1answer
595 views

Magento 2: How to define Scope For Router.php

I have created Custom Module. As it requires some front-end routing, have to create Router.php Whenever I'm accessing Magento eCommece Frontend other pages, say Category/Product Page. It will call my ...
0
votes
1answer
31 views

can i add more than 1 pages in a module in magento?

I already have a module and i want to create new page which redirected from 1st of my module. I want to know how to create more than 1 page in a module and also how to link pages.
0
votes
1answer
112 views

Serving a different product page for certain products with router

I've developed a module that sends some product pages to a product customization wizard. I've used getProductUrl() to change the links to point to the customization URL. http://mywebsite.com/designer/...
0
votes
1answer
306 views

Add a comment to an order on Magento after backend javascript action with XMLHTTPRequest

I'm working on a custom module for Magento CE 1.9.1 and i need to add a comment to an order after a javascript function is triggered (clicking on a button). I thought to do this using an AJAX/...
0
votes
1answer
48 views

Why magento 2 has controller file for each action?

Magento 2 controller file created for each action like add,edit, delete, update, get. I want to know about the advantage of creation controllers for each action.
0
votes
1answer
64 views

Set module frontname programatically

In my magento admin area, admin can set a name to be displayed on the contact us page. For example, admin can set "contact-us" as the url-alias and I want to set that as the frontname of my contacts ...