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
74k views

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
55k views

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
11k views

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
5k views

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. example.com, example.com/it etc.) Problem: Now I've got example.com/about-us and example....
el_machine's user avatar
23 votes
7 answers
23k views

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
13k views

Magento url key has strange numbers added by the system Magento 1.7.0.2

I've been pulling my hairs to figure out what's going on with my Magento store (1.7.0.2 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
3k views

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
361 views

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

We're on a heavily modified EE 1.13.0.2 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
5k views

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
2k views

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
2k views

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