Questions tagged [url-key]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
30 views

Magento 2: Change the “URL Key” and save the category “The value specified in the URL Key field would generate a URL that already exists.”

When change the "URL Key" and save the category then throw the below error. This store Migrate Magento 1.9 to Magento 2.3.5-p1 and used multi store view. Error: The value specified in the ...
1
vote
4answers
33 views

Where is URL Key information stored in database?

I'm using a mass import extension to import product URL Keys for a Magento 2.3.0 site which recently went live. The URL key information in the backend product detail is correctly updated but Magento ...
0
votes
0answers
16 views

Product Form SEO URL KEY even listener

When I am adding a new product, Then, Search Engine Optimisation fields: meta title, meta description, meta keywords have an event listener which fills in these fields when the user types in the ...
0
votes
1answer
45 views

add the sku to the url key Magento 2

I want to rewrite the url of product from www.example.com/product-name.html To www.example.com/SKU.html Someone can help me? The products we sell are unique, but share the same name. So when we add ...
1
vote
2answers
66 views

Magento 2 - add prefix before category and products urls

I want to add prefix in category and product urls of Magneto 2.3.4. I was able to add prefix in product urls but not working on category urls. Please guide.
0
votes
0answers
22 views

Magento2 Micro Website - Adding Value from Variable in Store URL

I want to achieve a Feature on Magento2. I want to add a {URL Key} in Store URL, This URL key can be picked from a separate store info table. I have approx 400 store info and want a separate URL for ...
1
vote
0answers
20 views

Magento 1.9 Localized product url keys

In Magento 1.9 we want to use localized product URL keys for different storeviews. The url key is a global variable and can't be changed by storeview. Example: English: www.example.com/en/addidas-...
1
vote
1answer
36 views

Error while importing products through csv in magento 2

I am trying to update my product price through csv. When I run this import, I am getting this error: -> The value specified in the URL Key field would generate a URL that already exists. https://...
0
votes
1answer
216 views

Magento 2.3.5 how to add canonical links for cms pages having slash at the end of url-key

I am using magento 2.3.5p1 community edition. I want to add canonical links in cms pages. As in 2.3.5 magento we have to create a separate layout update file as cms_page_view_selectable_[cms-url-key]_[...
0
votes
1answer
102 views

Magento 2 Change Url Key on new product save

How can I programmatically change URL-key on product save? I need url-key as a first brand and product name (/brand-productname)
0
votes
1answer
33 views

Magento 2 add custom external url to product

I'm doing an e-commerce site that instead of having products it will have overview of properties, but this properties are stored in an external website. I need to add an external url to the products, ...
0
votes
1answer
37 views

Magento2 - After upgrade 2.2.4 to 2.3.4 facing issue with url key

In Magento2.3.4, I upgrade magento2.2.4 to 2.3.4 facing issue with category url key showing blank in category edit page in admin. Please check screenshot
0
votes
0answers
15 views

Change url key of categories from global to store

is it possible change the url key attribute of categories from global to store ? check the image for more reference
0
votes
0answers
21 views

The url-rewrites table has rewrites for categories and products which are not in catalog_category_entity_varchar

I came across a problem between categories and URL rewrites after migrating a project from Magento 1 to Magento 2. At the moment, I have conflicts when I work with products. I started looking for ...
0
votes
0answers
51 views

Magento2: How can set duplicate product URL?

I want to create each product with duplicate url like example.com/custom. I have tried below things. I am creating each product with url of custom-productId then it is coming like example.com/...
3
votes
1answer
133 views

Does Magento 2 always transliterate product url keys or only when generating it?

In our Magento 2.2.9 shop when updating a products url_key it has been transliterated automatically to remove spaces, umlauts, etc.. We now updated to 2.3.3 and this behavior stopped working. I ...
1
vote
1answer
54 views

Set different static cms block to each different product

I have a created different CMS static blocks. I need to call the respective static block for each product. I thought of getting the URL key and then assign it to the respective Products. How could I ...
1
vote
3answers
41 views

change product URL programatically

I need to change all my product URLs and I would like to use a code snippet to use it. All I need is a simple code which is Magento 2 compatible and will change the URL for one product then saves it. ...
0
votes
1answer
205 views

Error “URL key for specified store already exists” when enable “Anchor” in category in Magento 2.3.2

Categories in two different parent with same url-key. First category in the list is saving fine when we update anything in that. But when I am enabling Anchor => Yes In the second category with ...
1
vote
1answer
86 views

Magento 2: How to not use URL /home

By default, Magento uses the URL key 'home' for the CMS homepage. The problem is that the homepage now has 2 URL's. http://example.com/home and http://example.com/. I don't like this behaviour, it ...
1
vote
0answers
22 views

Product url_keys nulled after some time

Setup: Magento 2.2.x, OpenSouce (Magento Community Edition) Products were imported from Magento 1, url_path attributes were cleared all url_key values are unique (both products & categories) ...
1
vote
1answer
47 views

How can I programmatically save selected products? - url key is empty after csv import

I imported some non-visible simple products (from csv) with an empty url key field. If I save one of these manually in the back end the url key is generated OK. If I bulk update an attribute the ...
1
vote
1answer
49 views

what is equivalent of catalog_category_entity_url_key in magento2?

I am trying to find category url keys and I have catalog_category_entity_url_key in magento1, but I do not have it in magento2. how can I find the values?
1
vote
0answers
22 views

Store, websites Magento 2 catalog

I'm very confused. I exported all my products and saw I have the same product in default store and "no store", I mean, my catalog have the same products twice. Not sure what it causes and how this ...
0
votes
1answer
33 views

all product page showing 404 and i could not access admin pages magento 2

I have copied my Magento 2 backup to my new server now I am getting all product page showing 404 and I could not access admin pages magento 2 exception.log main.CRITICAL: Unique constraint ...
0
votes
1answer
78 views

How to add Home Page url key for all scopes programmatically using Recurring.php magento 2

I tried to add Home Page URL key programmatically using Recurring.php Normally from Magento Admin backend: STORES -> GENERAL -> Web -> Default Pages -> Default Web URL: I tried using Vendor/...
0
votes
2answers
88 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 ...
4
votes
0answers
145 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: ...
3
votes
0answers
142 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
84 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
10 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
107 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
85 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
37 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
370 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
463 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 ...
1
vote
2answers
460 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)...
1
vote
1answer
540 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?
1
vote
0answers
289 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
96 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
377 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 ...
2
votes
1answer
1k 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
1k 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
912 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
449 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
14 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
4k 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
4answers
1k views

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

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
1k 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