Questions tagged [url-key]

The tag has no usage guidance.

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

Has Magento ever changed the way they test for URL Key conflicts?

I have a client whose site often contains a category (and sometimes additional sub-categories) and a product with the same name and URL key, which I am aware is unusual. They recently complained that ...
RichardB's user avatar
  • 325
0 votes
0 answers
11 views

How can i change product url key in other language?

How can i change the url key of a product in an other language? For example: For our Dutch website i have a product url and we push our product also to another storeview for Germany. How i can change ...
Gerrit van der Garde's user avatar
1 vote
2 answers
44 views

How to replace an existing product's url with a new product

I am duplicating a product, disabling the old one and want to set the url of the new product to replace the old product. $duplicateParent = $this->productCopier->copy($oldproduct); $oldproduct-...
Ben's user avatar
  • 11
0 votes
2 answers
98 views

Magento 2 - Error importing a CSV file : The " " category name can not be used to generate Latin URL key

I'm trying to upload a csv file and I get the error: Invalid URL key. The " " category name can not be used to generate Latin URL key. Please add URL key or change category name using Latin letters ...
zinon's user avatar
  • 103
0 votes
0 answers
24 views

Magento2 URL Key not getting updated for 1 store

Magento2 I am facing a strange issue were URL Key is not getting updated in 1 store (Arabic) when I update the product URL from All Store Views. As soon as I change the URL key from All store views &...
Arjun's user avatar
  • 3,546
1 vote
3 answers
450 views

Magento 2 - empty URL Key for home page

Our site home page URL is https://example.com But the corresponding CMS Page in Magento 2.4.4 has home as the URL Key. As a result, the home page can also be browsed at https://example.com/home We do ...
J Bruni's user avatar
  • 11
0 votes
2 answers
292 views

URL key is already in use by another blog item

Anyone can help me to fix this problem ?
Hirun's user avatar
  • 13
1 vote
0 answers
132 views

Why aren't Magento 2 URL rewrites working as I'd expect?

Since deploying a Magento 2 website we've had trouble with URL rewrites. The default URL used by our products is (example) mysite/catalog/product/view/id/50146/s/my_product/my_category/2/ This is not ...
Sparko's user avatar
  • 111
0 votes
1 answer
16 views

Forced rename update function (sku number input > url key input)

How do I code a function that force sku input data into url-key input data everytime I update a simple product or groupe product? This code work only on product creation but I want it to work on ...
i37Ow's user avatar
  • 3
0 votes
1 answer
76 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 ...
aasiya shaikh's user avatar
0 votes
1 answer
257 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 {"...
sina Dabbagh's user avatar
0 votes
1 answer
468 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/...
Iyo's user avatar
  • 21
1 vote
1 answer
381 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\...
aich.khalid's user avatar
0 votes
1 answer
805 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 ...
SNAFU's user avatar
  • 176
2 votes
1 answer
518 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. ...
thacac's user avatar
  • 21
0 votes
1 answer
2k 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 ...
Kirti Nariya's user avatar
  • 3,421
1 vote
4 answers
2k 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 ...
Sparko's user avatar
  • 111
0 votes
1 answer
1k 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 ...
gill's user avatar
  • 329
0 votes
2 answers
738 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.
Arsalan Ul Haq's user avatar
1 vote
0 answers
63 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-...
Simon's user avatar
  • 11
1 vote
1 answer
49 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://...
Nafsss's user avatar
  • 740
1 vote
1 answer
959 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]_[...
chanchal's user avatar
  • 407
0 votes
1 answer
2k 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)
Akshay Kamble's user avatar
0 votes
1 answer
298 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, ...
Oscar Vaz's user avatar
0 votes
1 answer
67 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
Anas Mansuri's user avatar
  • 2,627
0 votes
0 answers
144 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/...
Ravi Varma's user avatar
3 votes
1 answer
234 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 ...
Daniel's user avatar
  • 2,199
1 vote
1 answer
210 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 ...
Haerriz's user avatar
  • 681
1 vote
3 answers
305 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. ...
Zoltan veress's user avatar
0 votes
1 answer
2k 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 ...
Vinod Kumar Clix's user avatar
1 vote
1 answer
284 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 ...
Arne's user avatar
  • 165
1 vote
0 answers
26 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) ...
Jakub Winkler's user avatar
1 vote
1 answer
76 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 ...
jscar's user avatar
  • 787
1 vote
1 answer
77 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?
Nickool's user avatar
  • 1,069
1 vote
0 answers
24 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 ...
Dan's user avatar
  • 11
0 votes
1 answer
60 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 ...
prabhakaran7's user avatar
  • 1,067
0 votes
1 answer
133 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/...
Hitesh Balpande's user avatar
0 votes
2 answers
396 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 ...
Mager Nube's user avatar
4 votes
0 answers
252 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: ...
Vish Vaghela's user avatar
3 votes
0 answers
247 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 ...
Muhammad Hasham's user avatar
1 vote
0 answers
252 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 ...
user3623937's user avatar
2 votes
0 answers
20 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 ...
Aditya Patil's user avatar
1 vote
0 answers
27 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 ...
Radha Krishna's user avatar
2 votes
1 answer
357 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 ...
brackfost's user avatar
  • 1,010
1 vote
1 answer
389 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 ...
1990rk4's user avatar
  • 593
0 votes
0 answers
70 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 ...
MehulKanjariya's user avatar
0 votes
1 answer
755 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 ...
Xabby's user avatar
  • 529
0 votes
0 answers
607 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 ...
user73390's user avatar
2 votes
2 answers
1k 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)...
zitix's user avatar
  • 2,192
2 votes
1 answer
914 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?
Akif's user avatar
  • 1,492