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 [url-key]

The tag has no usage guidance.

0
votes
0answers
10 views

magento csv bug export then import

does anyone know why doing a full product export and then reimporting it causes so many URL key errors - it looks like Magento is trying to rebuild certain products and of course finds duplicate ...
1
vote
2answers
20 views

What does this pattern match when filtering strings for URLs

What exactly is this line for preg_replace('#[^0-9a-z]+#i', '-', parent::filter($string)) in the following method in \vendor\magento\framework\Filter\TranslitUrl.php: public function filter($string)...
0
votes
1answer
25 views

Where can I find the product url key builder for Magento 2?

Simple question: where can I find the function in Magento 2 which generates an url key from a products name?
0
votes
0answers
20 views

Is it possible to generate unique URLs when using Magento\Catalog\Model\Product?

I am using Magento\Catalog\Model\Product to save products in a loop. When i have multiple products with the same name $product->setName($name) i get the following error: Fatal error: Uncaught ...
0
votes
0answers
20 views

Magento 2.2 missing full url key from google results

I noticed that Google doesn't crawl my full URL path in the results, for my subcategories pages, eg: www.domain.com/category-level-1/category-level-2/ it only goes until 1st level www.domain.com/...
1
vote
0answers
38 views

Magento 2 - product's url_key changed automatically

We are using Magento 2.2.5. Currently in Magento store we managing url key by concatenating product's name with the brand's name. So many times in some products url key of product's changed from only ...
1
vote
1answer
39 views

Image not responsive on home page.

I've added an image to my home page and when I preview the home page from CMS pages in the admin the image is responsive. When I click on my logo the page is then fully responsive all except the ...
0
votes
2answers
52 views

Magento2, How to pass product data as query string in Url using JSON template? Custom Module

I am trying to get product name, product SKU, Quantity in Url such that when I write 1 in Url 1-50 products should display, when writing 2 as page number 51-100 products should display. And data goes ...
1
vote
1answer
92 views

Export Product Sku and Product_Url in magento2

Can we export product with sku and url into csv in magento2? Is there any query to get it quickly? I am looking for query to get all sku and its url key or full product_url. Please anyone help me. ...
0
votes
0answers
317 views

The new url key is not working for product page

I am trying to change "URL Key" for the product. When I edit "URL Key" on product edit page, URL key gets changed correctly ... but the "request_path" in database is not updated for that key. I have ...
0
votes
2answers
154 views

How to get product by url_key and store id magento 2

I am working in magento 2 project. I need to load product collection by url_key and specific store id. I tried but I am getting issue in store id. I search in stack but didn't get solution. My Query ...
0
votes
1answer
129 views

product url not updating magento 2

I have update product URL-key but still, the old URL is working. New URL is not working. I have run indexer command, cache flush. Also, regenerate product URL from an extension. But still, the old ...
3
votes
1answer
34 views

Import error in Magento2 admin

I am importing product with csv file of 200 products. Two product have same name, so when in import i am getting below error. Url key: 'key' was already generated for an item with the SKU: '39921'. ...
1
vote
0answers
10 views

Problems creating category Magento 2.1.7

my code to create a category is the following: private function createCategory($name='',$parentId=2,$active=true,$description='',$metaTitle='',$metaKeywords='',$metaDescription='') { if(!isset($...
0
votes
0answers
57 views

Best Practice for Url Key when using CMS Home Page and multiple store views in Magento 2?

Wondering how to approach this situation: We have two stores and corresponding store views, store1 and store2, which can be accessed via site.com/store1 and site.com/store2 Each store is linked to a ...
0
votes
0answers
193 views

Magento 2.2.4 Layared Navigation change filter url

I use Magepaza_LayaredNavigation extension for magento 2. I have attribute named color, after select it in filters url is generated by attribute name ex:- www.domain.com/category/black. I need to ...
3
votes
2answers
1k views

URL Key not changing in Magento 2

I am using Magento 2.2.4, I am having too many Disabled/OutofStock products which are useless. Now the problem I am simply replacing all Disabled/OutofStock products with New Products. I can ...
0
votes
0answers
29 views

Is it possible to get the secret keys for some backend url's?

My backend URL's contain secret keys. I am customizing a module which sends me an email when someone is creating a new account. I would like to insert into the email message a link to redirect me to ...
0
votes
0answers
148 views

Product url_path is not updating after saving the product in magento 2

I have changed url_key of the product. When I hit the url_key in the url then the product going to 404. I have checked in the database table catalog_product_flat_2 where I found the url_key and ...
0
votes
0answers
54 views

Some products have catalog/product/view/id/2221/name-of-the-product from product URL magento 2.1.8?

In the Site, product URL is like this: http://www.test.com/product-url-key But when I searching the product then some product URLs are showing like this: http://www.test.com/catalog/product/view/id/...
0
votes
0answers
436 views

Magento 2 import unique URL key error

Magento version: 2.23 I got the following error codes when I was trying to import products with csv: Url key: '%s' was already generated for an item with the SKU: '%s'. You need to specify the ...
0
votes
0answers
97 views

Magento 2 set bulk permanent redirect for old URL

So there is an option on the product edit page that allows you to create a permanent redirect for the old URL. See picture below. I'm currently doing an internship and my boss wants me to export the ...
0
votes
1answer
284 views

Magento 2 - On category save 'URL key for specified store already exists' error occurred

After migration process, I can not save category page. I try all solution but not getting the success it gives an error like below image. http://prntscr.com/irfiml
0
votes
1answer
176 views

Magento 2: How to generate category url with underscore

I am importing categories from external script. All working fine with import. But with URL KEY magento is changing value automatically. And i want the url same as i am passing from script. 1) ...
0
votes
0answers
38 views

Saving product programmatically, deletes url_key

I'm using a custom module to update products. I'm changing some product attributes (not product name/title) and then use this foreach ($collection as $product){ $product->...
0
votes
2answers
1k views

URL was already generated for an item with SKU. ERROR

I have problem when trying to import products via CSV i get this error: Url key: '******' was already generated for an item with the SKU:'*******'. You need to specify the unique URL key manually en ...
1
vote
1answer
180 views

Issue with URL Path of child category after change URL key of Parent category

I have an issue with URL path of child categories. I have changed URL key of the category , but still child category URL path with old URL key of the parent category. On the category page, i am ...
0
votes
1answer
81 views

Magento 1.9 add a fixed product prefix

First of all, did quite some research, but could not find the best solution in this case. For SEO reasons, we need to add a fixed prefix (with a slash) to all product URLs. Product URLs now look ...
0
votes
1answer
309 views

Create link to internal page from its url key

How should I create the link to internal page in a template file ? For instance, I have a subcategory which URL key is education, how should it be called in my phtml file to get the page http://my....
0
votes
1answer
302 views

Renameing categories didn't change URL Key and old names of categories still the same in product-catalog page

I renamed the categories name in admin panel. It is successfully changed after fixing a bug related to URL rewrites, then I faced another problem that URL Keys of each category map to the old ...
1
vote
1answer
108 views

Magento 2.x : How to check if use_default is checked for URL key

Summary: How can I get value of "Use Default" checkboxes like use_default[url_key]. Scenario : I have a website with multiple store views. the URL key is set in Default ...
0
votes
1answer
522 views

Add a static URL prefix for product and category Magento 2

I need to specify a prefix static string for all URLs of my Products and Categories. Just like Wordpress Woocommerce permalinks. For example all of Categories should have product-category prefix in ...
0
votes
1answer
245 views

Non-default store view URL 404

I have a Magento CE 2.1.6 website, with 2 store views for different languages: English store view (default) French store view My problem is that when I am seeing the website on one store view if I ...
0
votes
1answer
844 views

Getting “url key for specified store already exists” error in magento2

I have installed magento2.1 and it was working properly with multi-store. When I have disabled some categories from a "sub" store, and try to add any product (already assigned to "sub" store) to that ...
2
votes
1answer
878 views

Magento 2: Setting the product url key with REST API

Is it possible? I see no mention of a url_key in the Swagger docs. I have a large database of product I need to import, and the names (which seem to determine the url) are not unique.
0
votes
2answers
977 views

Magento 1.9- Pass a Parameter to cms page url

I am new to Magento, I need to pass parameters to a cms page created through the backend under the cms section. The steps I followed to create a page are as follows: First of all, I added a new page ...
1
vote
1answer
673 views

Magento URL-safe parameter

I want to transmit a token as URL-Parameter. Is it safe to just encrypt the token like in Version 1? Or needs the token to be encoded like in Version 2 because of unsafe characters? $token = Mage::...
3
votes
1answer
564 views

URL key for specified store already exists on Category edit in Magento in Magento 2.1.6

I working on a project on which I get the error URL key for the specified store already exists While editing category on store 2. I get this error only on store 2 Arabic first category and also ...
1
vote
1answer
2k views

Magento 2 - change url-key for a category for all store views programatically

How can I programatically change url-key for a category for all store views?
1
vote
1answer
63 views

Magento 2 - mesg: URL key for specified store already exists.and I know it doesn't

In Magento 2, when I try to change URL key for a category, I get this message:"URL key for specified store already exists.". This is my code: $this->logger->log("id is: " . $c->getId(), true)...
6
votes
5answers
14k views

Magento 2 : URL key For Specified Store Already Exists

We have a Magento 2 multisite setup, with categories set up. When editing some (but not all) of these categories, in different store views, Magento throws following error and does not save data: In ...
5
votes
0answers
239 views

Catalog URL Rewrites not working

My product pages show 404 page. There is something wrong with the catalog URL rewrites. Screenshot below. The error message I see is Invalid backend model specified: enterprise_catalog/...
0
votes
1answer
43 views

Product Import > URLs missing “.htm” extension even after re-indexing.

I am uploading a large number products. The upload runs perfectly but Magento is not adding the file extension to the url_key. So none of the products uploaded have the “.htm” file extension. Even ...
0
votes
0answers
201 views

We change the root category to sub category url key is already exists error

We change the root category to sub category in Magento 2 Error is : url key is already exists.
0
votes
1answer
3k views

How to generate url-key for product programmatically

I am creating products programmatically in my magento store by a PHP script. Everything is going correct but url-key not showing correct. For example : I have a product Test already in store which ...
2
votes
2answers
5k views

Magento2: How do I get product url key?

Currently I have this in list.phtml file: echo $_product->getProductUrl() What I need is just the url key, not the full url. How can I achieve that in Magento 2 as getUrlKey() does not seem to ...
1
vote
0answers
613 views

M2: Is `url_path` used for anything?

I'm working with a catalog in M2 that has been somehow migrated (don't know how). It has url_path migrated and has the form of url_key + html. This is causing the URL rewrites to create URLs that end ...
0
votes
1answer
58 views

Magento2 import update adds new item id into cataloginventory_stock_item

I'm trying to update product urls, but the import functionality in Magento 2 adds new item id into cataloginventory_stock_item table for each updated sku and I have to manually delete each duplicate ...
0
votes
1answer
483 views

Problem with the URL when changing store while in Subcategory

First off, Lets clarify : -Using Magento ver. 2.1.1 -Got a Porto theme -Only one extension other then the one for the theme: M2E -Installation on Google cloud We just got into magento, fidle with it a ...
0
votes
1answer
195 views

Magento URL key including / redirect to 404

I would like to generate url keys with '/' of products. I have override the \Enterprise_Catalog_Model_Product_Attribute_Backend_Urlkey::beforeSave method and generated url key as per requirement. My ...