Questions tagged [url-key]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Simple solution for 'The value specified in the URL Key field would generate a URL that already exists.'?

Magento 2.4.2-p1 Smartwave Porto theme extensions from Amasty We have done a migration using the Magento Migration Tool and now we constantly get Error when updating categories or products such as ...
0
votes
0answers
25 views

Magento 2 How to set url key for default store view

Magento 2.3.5 version How to set URL key for default store view? Example - All store view URL-key - xyz-test which is correct Default Store View URL-key - abc-test it is not correct I want to set the ...
0
votes
1answer
19 views

Is this any way to set different category of configure product and it's child product?

Is this any way to set different category of configure product and it's child product? I want to display child product on listing page and its parent visibility is not visible, but i what that anyone ...
0
votes
1answer
40 views

When saving category with other language get invalid key url

I am using Magento version 2.2.3 . When I want to save new category in other language from English I get invalid URL key error. This is my log in var folder of Magento project Invalid URL key {"...
0
votes
1answer
47 views

How can I build the URL from JS file with key - url.builder not working -

I have added a Ajax function to get data, but I need to add secure key to my link. define([ 'jquery', 'underscore', 'uiRegistry', 'Magento_Ui/js/form/element/select', 'Magento_Ui/...
0
votes
1answer
57 views

Magento 2 form key changes on going from front-end to back-end

I have a button on front-end category pages for editing these pages. On click it redirects to dashboard rather than category edit form in admin side. $objectManager = \Magento\Framework\App\...
0
votes
1answer
85 views

How to create a custom router with url key

I'm looking to create a custom router so that if I go to www.mysite.com/promotions/cruise-trip it would route to www.mysite/offers/promotions/index/id/5 for example. I'm not really sure how to do this ...
2
votes
1answer
164 views

Category Name and URL Key issue / Admin / Migration from 1.9.1.0 to 2.4.2

I'm facing an issue further to data migration from magento 1.9.1.0 to 2.4.2 in Admin > Store / Configuration / Category Categories name and url_path are in the database, Category name also. ...
0
votes
1answer
214 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
531 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
1answer
217 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 ...
0
votes
2answers
215 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.
1
vote
0answers
25 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
43 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
485 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
713 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
53 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
46 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
73 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
179 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
63 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
59 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
503 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
135 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
25 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
53 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
67 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
112 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
138 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
154 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
164 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
120 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
11 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
21 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
188 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
137 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
43 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
487 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
515 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 ...
2
votes
2answers
602 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)...
2
votes
1answer
701 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
345 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
147 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
539 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
2k 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
2k 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
937 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
559 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'. ...