The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [url-key]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
20 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
16 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) ...
0
votes
0answers
16 views

Duplicate URLs ending with #!

Does anyone know why a site can contain duplicate URLs ending with hashtags & exclamation mark e.g. https://www.vaibhavjewellers.com/gold-jewellery/kids/maangtikka.html#! https://www....
0
votes
0answers
4 views

Import category url key and meta tag programmatically

I want to import my magento2.1 categories url_key and meta title programmatically. how can i do?
1
vote
1answer
33 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
21 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?
0
votes
0answers
16 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
0answers
21 views

Magento2.3 url_path is different from url_key

On my website we sell a number of configured products, and suddenly we've been getting a large number of our products with the url_path value (the actual URL) getting changed to the key of a child ...
0
votes
0answers
25 views

Magento 2: Allow switching store view on a CMS page with different URL keys

My store has multiple store views for different languages. When the user is on a CMS page (for example 'contact') and switches to a different store view, the URL remains the same so the user sees the ...
0
votes
0answers
26 views

Magento 2: How to create separate url for each items added by admin?

I have created a module which is used to add some user information by admin like name, image, short_description, description etc. I displayed short_description on listing page and added a link to ...
0
votes
1answer
22 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
48 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
29 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
74 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
34 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
105 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
34 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
38 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
46 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
35 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
35 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
183 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
25 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
14 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
238 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
18 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
235 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
194 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
206 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
48 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
109 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
639 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
698 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
733 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
207 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
3k 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
85 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
623 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
336 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
3k 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
267 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
143 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
495 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
435 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
153 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 ...