| Author | Message |
|---|---|
|
Written on: 26. 11. 2009 [12:50]
|
|
|
goldentoast
matthias
Topic creator
registered since: 14.11.2009
Posts: 6
|
When integrating the Magento breadcrumb I encountered problems with some certain Magento URLs: These URL have a empty "route" "controller" and "action" field but instead have a "_direct"-field. Turns out the Magento-Core has different URL types and if no "_direct" URL is present the old URL scheme is used. With commenting out some lines in the core you can therefore fix these URLs (all parts that call "getDirectUrl()"). I attach a patch for this. I only see this as a workaround, but there is no other solution jet. best regrads Matthias [This article was edited 4 times, at last 07.12.2009 at 09:55.] |
|
Written on: 06. 01. 2011 [14:01]
|
|
|
Desiree
Desiree
registered since: 04.08.2010
Posts: 12
|
It seem's that I have the same problem in another place. When clicking on an item of the wishlist the link generated is http://www.mydomain.de/index.php?id=2&tx_fbmagento[shop][route]=&tx_fbmagento[shop][controller]=&tx_fbmagento[shop][action]=&tx_fbmagento[shop][_direct]=ein-bestimmtes-produkt.html and a blanc page is shown. Typo3 4.3.3 Magento 1.4.1.1 Typogento 1.0.2 Does anyone know what to do in this case? Thank you for your help Desiree |
|
Written on: 31. 01. 2011 [10:00]
|
|
|
erik.dahlin
erik
registered since: 02.11.2010
Posts: 11
|
Using magento 1.4.2.0 I had some issues with the [shop][_direct] param and adding bundled items to cart. There was also a broken link if I clicked an item while inside the shopping cart. Changing the file: app/code/core/Mage/Catalog/Model/Product/Url.php on line 216-225 to: PHP /*if (!empty($requestPath)) {
$routeParams['_direct'] = $requestPath;
} else {*/
$routePath = 'catalog/product/view';
$routeParams['id'] = $product->getId();
$routeParams['s'] = $product->getUrlKey();
if ($categoryId) {
$routeParams['category'] = $categoryId;
}
//}For me this fixed both broken links (might fix/break other links, not sure but worth a try if you have link issues) [This article was edited 1 times, at last 31.01.2011 at 10:01.] |
|
Written on: 03. 02. 2011 [23:53]
|
|
|
Desiree
Desiree
registered since: 04.08.2010
Posts: 12
|
Hi Erik, I tried it and the broken links were fixed. It doesn't seem to break other links. Thank you so much for your help. Desiree |
|
Written on: 28. 02. 2012 [16:15]
|
|
|
it_hk
Boris
registered since: 02.09.2011
Posts: 4
|
If you make sure that the table core_url_rewrite in Magento database is empty you don't need any change of Magento core files. 1. go to "Index Management" in magento backend 2. change status of "Catalog URL Rewrites"-index to "Manual Update" (don't start the rebuild any more !) 3. empty (truncate) table core_url_rewrite in the database Boris [This article was edited 3 times, at last 28.02.2012 at 16:24.] |