Questions tagged [url-key]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
22 views

Magento 2 url key includes SKU number, how to remove?

The big problem with Magento somehow amending the url key to include the SKU where /product-title-stec00778.html should be /product-title.html and the SKU is SKU STEC00778 Any ideas? Not ...
0
votes
0answers
19 views

Magento 2 ui component admin field disabled/enable checkbox on userChanges event

Similar to native Magento URL Key Create Permanent Redirect for old URL: I have a custom module and wants to achieve same result: I have created a group exactly how category_form.xml in my_form.xml ....
0
votes
0answers
29 views

Magento 2 - Issue while product save in admin

I have migrate products from magento 1 to magento 2, so for product with similar name magento 1 assign some random number in the url key. so this same url i had imported to magento 2. when i open a ...
4
votes
0answers
61 views

Magento 2.3.1 - URL rewrite rules are not creating for product after update url key

Any one faced below issue in default Magento 2.3.1 and if found any solution then please help us to solve this. We are facing an issue with URL rewrite rules in fresh Magento 2.3.1 version. Issue: ...
2
votes
0answers
20 views

Magento 2.3 - Products URL key regenerate on import functionality

I update the products with no url_key header present (only sku,description) using the import functionality The import should only update the fields which are mentioned in the CSV file. The import ...
1
vote
0answers
23 views

Magento 2.3.0 URL keys regenerate on import

This is a serious issue that is occurring on numerous Magento 2.3 builds (I have tried) If we use the import function from a CSV with the "name" header, Magento automatically updates the URL key to ...
1
vote
0answers
9 views

Different Product Pages Displayed when I Change URL Key From admin panel

I am using Magento 2.2.2 and facing an issue and trying to resolve it,While creating a new product or editing already added product when i change URL key of the Product from SEO block i get two ...
1
vote
0answers
17 views

In magento 2 URLkey saving issue using programatically

We are using Magento 2.2.5.we have all store views and default store views are available. Like image http://prntscr.com/nnu4qd some product are don't have the URL Keys in admin side. we tried to save ...
2
votes
1answer
34 views

Url rewrites not matching URL key

this store is in Magento 2.3.0, and I'm running into an issue regarding url rewrites/keys. On the product, I've set the url key as example-key, but only example-key-extra-stuff works -- that being ...
1
vote
1answer
30 views

Product Url Key is not generated on edit product

I have the following scenario: I have created a new product. I have left the url-key field blank. If url-key field kept blank, then on product saving, it will set url key value automatically ...
0
votes
0answers
33 views

Magento2 url issue

My magento2 website in following url to be show catalog/product/view/id/9583 but i need like powder-9583.html so what step we required to achieve this. and also search engine is on on ...
0
votes
1answer
128 views

Contact Page URL Change: Magento 2

I have tried to changed the default URL of contact page in magento2 to my custom URL but it is not working at all. I have tried as follows: Put the following code in my custom module.xml <config ...
0
votes
0answers
21 views

Create a variable href link using URL Key

I'd like to create an a href link using URL key. For instance, the url key is swim-bottoms. The page is www.example/swimwear/swim-bottoms.html. There is also a website version that's www....
0
votes
0answers
13 views

How can we retain full path url for related products when we import data in bulk?

We have loaded data for the related products using bulk import functionality in our Magento admin panel. But the urls of the products are redirecting us to the category listing page instead of the ...
0
votes
0answers
159 views

Importing products in CSV - URL Key already in use

this seems to be a common problem and a flaw in vthe magento 2 CSV system, i want to export my catalogue update the pricing across all products and then re-upload it - however it requires a URL key ...
0
votes
0answers
14 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
144 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
119 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
33 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
28 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
159 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
43 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
95 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
466 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. ...
1
vote
2answers
525 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
609 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
158 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
12 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($...
3
votes
2answers
2k 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
82 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
1answer
528 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
3
votes
2answers
293 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) ...
1
vote
3answers
2k 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
223 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
123 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
446 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
386 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
145 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
768 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 ...
1
vote
1answer
342 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
930 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 ...
4
votes
1answer
1k 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
1k 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
908 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
665 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
3k 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
80 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)...
7
votes
7answers
19k 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 ...
4
votes
0answers
280 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
51 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 ...