Stack Exchange Network

Stack Exchange network consists of 175 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 [url]

Denotes question about URL issues and custom URLs.

3
votes
5answers
10k views

Magento 2 is generating the product url with catalog/product/view/id instead of product name

We are having a strange problem in our Magento 2 webshop. Our webshop has different ways of generating the product url. So some of our products just show the product url as it should be /name-of-the-...
3
votes
1answer
72 views

Setting up Magento 2 for multiple stores

After creating a second website on my Magento admin (setting up the store, storeview, base url etc.) I can't reach the newly created store. Whenever I go try the url I want website to use I just get ...
3
votes
2answers
10k views

Magento admin not working (too many redirects)

This morning i changed the System Config Custom Admin URL in magento witch resulted in a 404. I used this: https://stackoverflow.com/questions/7202950/magento-admin-url-not-working-404-after-changing-...
3
votes
1answer
284 views

Magento search request in admin is urlencoded

in magento admin panel, in latest search request, cyrilic requests displayed url encoded/ Such as %D1%83%D0%B3%D0%B3%D0%B8. How i can resolve this issue? please help.
3
votes
1answer
8k views

Change default sitemap URL

Is there anyway to change the default sitemap url from: http://mysite.com/catalog/seo_sitemap/category to just: http://mysite.com/sitemap
3
votes
1answer
81 views

Tried everything to get index.php out of the URL and everything returns Not Found error

Things I've confirmed: Site is on Ubuntu 13.10 server at /var/www/mysite.com/htdocs/ Uncommented: /var/www/mysite.com/htdocs/.htaccess RewriteBase / Catalog URL Key = phones Desired URL for this ...
3
votes
1answer
466 views

Magento : Product URL with last subcategory

I am exporting products from Wordpress to Magento. In Wordpress url structure is like this: www.mysite.com/sub-category/product/ but when I am opening this in Magento product url is like this: www....
3
votes
0answers
319 views

Magento 2: dataprovider getData() get called twice losing my requestdata

In magento 2 I created a grid through UI components. It gets populated with my dataprovide class getData method: public function getData() { $questionSetId = $this->request->getParam('...
3
votes
0answers
1k views

Get frontend category URL in admin area with correct base URL

I try to load categories in the admin area with store specific values. $this->categoryCollectionFactory->create() ->setStoreId($storeId) ->addAttributeToSelect(['name', 'url_key'])...
3
votes
0answers
409 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 :- ...
3
votes
1answer
947 views

301 to 302 URL redirection

Magento has the facility of 301/302 re-directs. I'm working on a project for which 301 works fine for each country, say if I'm visiting from India, it re-directs me to example.in from example.com . It'...
3
votes
0answers
170 views

Keep old urls for default store view in magento after enabling store code in urls

I have enabled store codes for my Magento website and it is working fine. I have two store views, arabic and english. For arabic, i have store code ar and en for english. My default store view is ...
3
votes
1answer
1k views

URL on CMS page not always working [closed]

I am developing a store in magento 1.9.1, local on MAMP The site is set up in navigation bar with a store-button which shows all the products (or a selection), category-buttons etc. In each category-...
3
votes
0answers
400 views

Magento 1.9.0.1 add a product to the cart by URL from external site? [closed]

I need to add multiple products from an external site to a Magento store. The stores sells cake decorations and they wan't to create recipes in their Wordpress blog, and with a simple press of a ...
2
votes
2answers
6k views

How to get RefererUrl in magento 2 observer?

How to get RefererUrl (source page url) in Observer file? Actually by using this; $this->_redirect->getRefererUrl(); I am getting Referer Url in magento 2 controller file.But in Observer file ...
2
votes
2answers
11k views

I want to use ADD TO CART via URL in Magento 1.8 but don't know which files to change

I have seen some suggested changes to make to call the FORM KEY to allow the ADD TO CART FROM URL to work. <?php $formKey = Mage::getSingleton('core/session')->getFormKey();?> <form ...
2
votes
3answers
3k views

Magento duplicate meta tags in google webmaster

I have magento 1.7. For seo reasons I am getting Duplicate meta descriptions Tags problem from google. For example /paralympics-paralympische-spelen/ /paralympics-paralympische-spelen (with and ...
2
votes
2answers
14k views

How to get the previous url & redirect from controller

How can I detect the URL and store it then use it on the Controller for Redirect. Can anyone help me with this?
2
votes
4answers
2k views

Magento 2 admin url gives error - Class Magento\Authorization\Model\RoleFactory does not exist

I have installed magento 2 on a local network (for example 192.200.200.200, and it is a virtual machine) i was having some permission problems, had to run sudo php bin/magento setup:static-content:...
2
votes
2answers
9k views

Cannot display image inserted by WYSIWYG editor

I created a form on backend and inserted an image into the editor. The image displays properly in the editor. However, the image cannot be displayed on frontend and 404 error is shown on the console. ...
2
votes
2answers
1k views

interpreting controller path compared to url

I have a file as follows: app/code/local/Mycompany/Catalog/controllers/ProductController.php and a uniquely defined action in that file: public function sendfriendemailAction() .. However the URL ...
2
votes
1answer
4k views

Magento 2 - Configurable product - Get parent product ID from child product ID

I have a configurable product with two virtual products as children. I have the child product ID. How can I the parent product ID from the child product ID? I have tried this but it is not working //...
2
votes
2answers
1k views

Redirect to homepage after submitting e-mail in Forgot password page?

When customer submit his email in Forgot Password page he is redirected to the Login or Create an Account page. How could I redirect users to the Homepage or to the Onepage Checkout page?
2
votes
1answer
3k views

Magento 2-How to link image to category page through cms page?

I have a static page of shop. On this page there are different images. I want to link these images to the specific categories types. For example i have an image of men's clothes. Now i have also a ...
2
votes
3answers
4k views

Header Logo Image URL Magento 2.1

How to Change Header Logo Image URL Magento 2.1. So I click the header logo to go to another website.
2
votes
1answer
5k views

How can I build a redirect URL in a magento 2 js component?

I have added a payment method renderer javascript file to a magento 2 module. I want one of the functions in the js to redirect to another page on the site. How do I get the base url so that I can ...
2
votes
1answer
4k views

get product seo url from id [duplicate]

i want to get product seo url from id below is code i used to get url from id $my_product = Mage::getModel('catalog/product')->load($id); $my_product_url = $my_product->getProductUrl(); but ...
2
votes
1answer
380 views

Magento : url structure

Please explain what is the meaning of this statement in Magento $this->_redirect('*/*/');
2
votes
1answer
2k views

What is the default url for 404 page?

This is an easy question. I changed the URL-KEY of the 404 page thinking that it would apply to the whole website, only to find that the 404 page didn't work anymore. Now I just need to know the ...
2
votes
1answer
3k views

Custom admin url, now some admin modules redirect to frontend

I have moved the magento admin to a seperate node, thus updated the settings in admin to set admin url as custom : thus admin.example.com, which points to that servers ip. All ok, but I find a lot of ...
2
votes
2answers
71 views

Issue in create controller

I am trying to create a custom controller in magento 2.1. I have created routes.xml and namespace as routes.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
2
votes
2answers
3k views

module pass custom url parameters

i want to show custom url parameter in page created via module what is did i created a module to show page with custom page issue is how to pass and show parameter in url like product id of parent ...
2
votes
1answer
315 views

Category url appending -1 out of the blue

As I know it, magento only ads a -1 when creating or editing a url that already exists, in order to not have duplicate urls. But this time magento ads a -1 to categories out of the blue, without ...
2
votes
2answers
227 views

Magento Enterprise Editon URL rewrite

IN some scenario for configurable product , when we update the url-key , it is storing in the "catalog_product_entity_url_key" but in the admin panel it is the old key , we also flushed the cache and ...
2
votes
2answers
8k views

How to add a product to the cart using a URL or query string?

I'm using Magento Enterprise 1.13; there appears to be some documentation around for adding a product using the URL & query string but those do not appear to be working for me. For example: Add ...
2
votes
2answers
7k views

Category URL Key redirect to Product Link

For example, I have this category that I want to redirect it to product page, is this possible? For example I have Kati Birch Forest product, and it's url key is kati-birch-forest Then I want this ...
2
votes
2answers
2k views

Get correct product URL from SOAP API

Using the SOAP API, how can I get URL for the product (when requesting from catalog_product.info) that will always work? Using url_key and appending ".html" is not good enough because in many stores ...
2
votes
1answer
5k views

Get skin resource path or url for set package and theme

I'm trying to get the header logo image and having some issues.. I keep getting the base/default package/theme instead of what is set as the package and theme for skin in the admin. Here is some code ...
2
votes
1answer
385 views

Magento 2 : How to get current product programmatically in a helper?

Could someone advise what's the best way to get the current product in a custom helper? Basically if I am a product page I need to get it's sku
2
votes
1answer
1k views

Get only the page path of the URL

I need to get the path of the current page like - /customer/account/ NOT http://magento.dev/customer/account/index/ Any idea how to do it?
2
votes
2answers
2k views

Echoing SERVER HTTP_REFERER in Magento 2

In native php we can display url referrer by echo $_SERVER['HTTP_REFERER'];. Now by Magento 2 i want to do the same thing, i have tried echo $this->getRefererUrl();, but it gives me page not found ...
2
votes
1answer
240 views

When I call Frontend controller action is called but after success it sets admin_in url

Currently i have faced one issue. when i call frontend controller from this url project/index.php/become-a-ditributor.html front controller action call successfully but after success my url show ...
2
votes
2answers
91 views

Get on-click URL

I have site using Magento 1.7, and have as a first page a login that is mandatory. I implemented the mandatory login via an observer, that is in charge of only allowing acces to the login page while ...
2
votes
1answer
2k views

magento 2: get url query string

What is the magento 2 equivalent of $_SERVER['QUERY_STRING'] I want to retrieve the full query string from the url and would like to do this using the framework's built in functions.
2
votes
1answer
786 views

redirect logout to phtml page instead of logging out

Log out option will be there in entire site and if we click on "LOg out". it will log out the customer from the site. but for some reason, if i click on log out , it should redirect to some link. ...
2
votes
2answers
438 views

Magento 1.9.1.1 puts url in search field

I'm faced strange thing in Magento Every time when loading any page (e.g. catalog, product, cms page) it puts the URL of this loaded page in search field. Template is Madison Island standard rwd ...
2
votes
1answer
30 views

URL Issue where the URL keeps extending

I have just launched my 2nd Magento store on calzeat.com and i am having an issue where going between certain pages the url doesn't work right. For example when i go to calzeat.com/contact then i ...
2
votes
6answers
3k views

How to forward all the 404 Magento pages to the front page?

I have a simple question...I had an old store and people bookmarked specific product pages in their browsers as well as Google search points to some specific pages. I have now installed a new version ...
2
votes
1answer
134 views

Add custom routers for custom product types

I have created a custom product type extending from Mage_Catalog_Model_Product_Type_Abstract. What I would like to do is change this product's main controller class to use my own. If a user clicks the ...
2
votes
1answer
168 views

url structure is not working well in magento site with categories and sub categories

we used following format under " age" menu in [Current Demo URL][2] code : [PASTEBIN DEMO][3] **"shop by age "**is main category and all other are sub category. but urls are generating like as in ...