Questions tagged [routing]
Denotes questions related to the routing mechanism of Magento
130
questions
1
vote
1
answer
1k
views
Magento 2: Why No LoginController on `customer/account/login`
If I understand my Magento 2 routing -- the URL customer/account/login has a front name of customer. This means it's "claimed" by the Magento_Customer module.
#File: app/code/Magento/Customer/etc/...
0
votes
1
answer
329
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/...
3
votes
1
answer
37
views
Magento extension that adds code before_body_end OR header based on route/uri I select
We were Googling to find an extension that maybe existed that adds code (or not_ based on certain routes.
Based on the router it either adds some code in before_body_end or header. Much like Config-&...
1
vote
1
answer
2k
views
disable redirect after add to cart [duplicate]
How to disable redirect to the cart page when adding a product to cart?
What has to be done so that the user remains on the same page when adding a product to the cart?
1
vote
1
answer
393
views
set default router if method not specified
I have a custom module inside my local code pool and folder structure for the same is as below:
app
code
local
namespace
module
controllers
etc
...
1
vote
1
answer
29
views
Redirect nice urls to filtered urls (/products/attr/value -> /products.html?attr=valueid)
Normally attribute filters create links such as:
/products.html?brand=3
I'd like to have links such as this work:
/products/brand/MannCo
I don't want to hardcode these links and don't want the ...
6
votes
5
answers
2k
views
Load review form on external page
By default the Magento URL for the review form is:
www.domain.com/(producturl)-reviews#review-form.
But in this page the review-form is a section in the reviews page.
I want to load the review-form ...
3
votes
0
answers
28
views
Enterprise Catalog Routing & Rewrites [duplicate]
I'm working on a Magento Enterprise site and I'm having an issue figuring out how catalog routing and rewrites work in EE 1.14.1.0.
In Magento CE, the core_url_rewrite table is used to transform a ...
1
vote
2
answers
1k
views
Different frontNames for each store
I've got a module which works fine, however I need a different frontName for each store.
The stores are 'english' and 'french', and as such, the frontName should be translated for each.
I've tried a ...
1
vote
1
answer
1k
views
Automatically switch store from category/view and product/view
Magento site with multiple store setup, different root category for each store, yet all products are visible from anywhere within the same website. Product url rewrites are enabled.
Say I'm browing a ...
1
vote
1
answer
244
views
Magento Admin Menu doesn't work
I need to have 2 submenus in one menu in System menu.
It shows for me 2 submenus, but clicking on it just redirects a browser to the front page.
This is my config.xml part:
<admin>
<...
1
vote
1
answer
35
views
Is it detrimental to create a module with numerous controller files?
When working with one module, although only specifying a single router in config.xml, it is possible to use the adminhtml.xml file to specify "routes" (note the quotation marks) (in the form of menu ...
0
votes
3
answers
17k
views
How to create a custom Adminhtml controller
I'm just trying to create a simple adminhtml controller.
#config.xml:
<?xml version="1.0"?>
<config>
<modules>
<AD_CustomShipping>
<version>0.1.0</...
2
votes
2
answers
163
views
How do I stop further controller processing when using a controller before="OtherController"?
I have a controller which is configured to handle requests prior to the core controller using a config.xml similar to this;
<frontend>
<routers>
<catalogsearch>
<args&...
6
votes
3
answers
4k
views
Disable admin or frontend route
Is there a way to disable an admin route, well actually any route. The use case is I have an extension that comes with a frontend section and an admin section but I do not want the admin section to be ...
1
vote
1
answer
44
views
/index/ in URLs - Required?
In particular, I'm working on a Magento site with a custom module that is only accessible if you include /index/ at the end of the module's frontend route. So the route is setup like this:
<...
1
vote
3
answers
287
views
How to override a bad extensions controllers?
Synopsis
I am trying to extend an admin controller of a module, however the frontend router and adminhtml router share the same frontname. I've tried so many things and none of them are working.
...
1
vote
2
answers
654
views
Custom URL rewrite for reviews in Magento
I have a review page for each product which can be accessed through : "example.com/shop/feedback/review/index/product_id/2931/"
Where feedback is the module, review is the controller and index is the ...
0
votes
1
answer
2k
views
on custom button click magento redirects to admin start page
in magento i have created a custom button in admin area that opens new pop up window, in this window i have form very similar like this in this post
Actually i want to do the same thing, like in ...
1
vote
1
answer
303
views
routing before button is clicked
Hello, I have following problem with button and link where it redirects. Here is my button code:
$block->addButton('label', array(
'label' =>...
1
vote
1
answer
618
views
backend controller, magento routes to start page when already logged in as admin
i have a question about magento routeing.
i have created a test module with config.xml file like this:
<admin>
<routers>
<adminhtml>
<args>
...
0
votes
1
answer
84
views
Magento extension subfolder change
I am trying to localize an extension i bought from Magento store.
http://www.sitename.com/extname/ to http://www.sitename.com/myext
I have changed the config.xml file to do this change.
<routers&...
0
votes
1
answer
79
views
adminhtml mis-configuration
When I click a link to go to my admin module I receive an empty content area with a 404 page not found message. I am assuming this is due to the module being misconfigured. But I cannot find where the ...
1
vote
1
answer
141
views
prefix/postfix route with database value
In the magento admin area there is a random key generated which is required as part of the route. I would like to recreate this with a value that is held in my database. But I don't know where to ...
0
votes
1
answer
2k
views
Problem with custom module : url redirects http to https
I have facing problem that module which I created working fine. But when I started using SSL i.e. http to https for checkout process. Front end modules which I created started to force use https.
2
votes
1
answer
4k
views
Magento Core Routes
Does anybody know of a comprehensive list of Magento Core's routes? I'm sure I could create a pretty accurate list by parsing the controller files for Action methods, I'm just wondering if anybody ...
7
votes
4
answers
2k
views
Magento EE 1.13 catalog routing
UPDATE
Below is the original question, and while it's related to what the issue ends up being, it's tangential. Please see the edits starting with number 2 for more useful background information
On ...
2
votes
1
answer
408
views
_isUrlInternal method in Mage_Core_Controller_Varien_Action failing due to port number
i am implementing the currency switcher on my 1.5.1.0 CE site. it's a fairly straightforward implementation, but for some reason, once i select a currency, i get redirected to the homepage rather than ...
3
votes
1
answer
708
views
Show 404 Page When Route isn't found?
When I enter a malformed product view URL, or something similar where the URL is correct but can't be handled (invalid ID for example) Magento sends me to the "CMS No Route Page" in Configuration > ...
5
votes
3
answers
14k
views
Magento 1 - category view URL doesn't get routed, product view does
In the process of setting up my site, I have been unable to use category view links of the form:
/catalog/category/view/id/
Similar links to a product view page work just fine. The above leads to ...