Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [url-key]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
19 votes
7 answers

Magento2 - Get category URL by ID

I'm trying to get the URL key of any given category with the ID. I have this; $categoryId = 3; $_objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $object_manager = $_objectManager-...
Asitis's user avatar
  • 1,247
10 votes
8 answers

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 ...
Jeremy Leys's user avatar
10 votes
2 answers

Magento2: How to generate admin url with secure key from a controller

I want to know, how can I generate a valid admin url from A Controller Anywhnere so I can make any custom url admin work if I need it in an ajax or whatever. Answer for either 1 or 2 will do the ...
Lachezar Raychev's user avatar
8 votes
4 answers

Translate url keys when switching store

Hope one can help me out with this problem i'm facing. Situation: I've got 1 website in 5 languages (e.g., etc.) Problem: Now I've got and example....
el_machine's user avatar
23 votes
7 answers

Magento 2 Custom Admin Action Redirected to Dashboard

I am taking the Magento 2 fundamentals development course and the Admin Router / Controller exercise seems out of date. The router does work, but the controller does not, it always just re-routes to ...
Kevin Chavez's user avatar
7 votes
2 answers

Magento url key has strange numbers added by the system Magento

I've been pulling my hairs to figure out what's going on with my Magento store ( version). 80% url-keys are appended with strange numbers in two different forms. Some are like this http://www....
user avatar
0 votes
1 answer

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 ...
Mehran Zarei's user avatar
4 votes
1 answer

What's the purpose of the unique index on 'value' in 'catalog_product_entity_url_key'?

We're on a heavily modified EE with some 20 store views - some of them sharing the same language - facing a problem with url keys. These are generated and differ per language BUT this doesn'...
pong's user avatar
  • 907
3 votes
5 answers

Magento hreflang tags: How to get URL Key per Store View?

I have been trying to add hreflang tags to a multi-language project following the answers to this question. In my setup there is one website, one store and there are three store views (English, German ...
MatthijsIJ's user avatar
  • 3,622
1 vote
3 answers

How i can regenerate magento products url keys

I run below script in browser but I have more products and all finish in internal server error. Can I change URL for only configurable products? How can i re-generate URL key based on product name for ...
Zerocard's user avatar
  • 137
0 votes
1 answer

Failed to import .csv to magento

I'm trying to import my .csv file to magento using magento import (system-import). When i choose my .csv file and click check data, it says file is valid and it gives me option to import. So i click ...
aiden87's user avatar
  • 101