Questions tagged [product-urls]

The tag has no usage guidance.

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

How to show custom Item detail page on require URL?

I created a module for custom items similar to products and showing on frontend as a listing and detail page. I want to show the listing page on this URL: storeurl.com/custom which is loading fine but ...
Sagar Parikh's user avatar
1 vote
2 answers
126 views

301 Redirection from Old Magento2 URLs to SEO-Friendly URLs

In my Magento2, some products have URLs that include the product id, such as the URL below. https://www.example.com/catalog/product/view/id/* and indexed with Google as well. Now i have regenerated ...
Banna Online's user avatar
  • 1,059
1 vote
1 answer
56 views

Change back redirection from product detail page in Magento 2

I want to change the "Back" URL for the admin's product form.
Mehul Shah's user avatar
0 votes
2 answers
149 views

Creating URL searchable product variants

In most e-commerce platforms, when a user selects a specific variant, the URL reflects that variant with a search parameter like in this case -> you can see ?variant=39817439379514 appended to the ...
user112140's user avatar
2 votes
0 answers
146 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
  • 121
0 votes
1 answer
253 views

Prevent custom url parameter in Product Page to be Cached

I am working on a requirement to add a custom parameter in the configurable product page URL. This will have the simple SKU to preselect the color in the swatches, something like this: https://site....
Eliacim DAVILA - CENSERE's user avatar
1 vote
1 answer
138 views

$product->getProductUrl() returns URL without category prefix

I tried to enable the category prefix from admin STORES >> CONFIG >> CATALOG >> CATALOG >> SEARCH ENGINE OPTIMIZATION. It is working pretty well on the category page. I am ...
Charanjeet Singh's user avatar
0 votes
1 answer
302 views

Proper way to remove .html extensions from URL and do a global redirect

I know how to remove.html extensions from URLs in Magneto 2.3, but I'm unsure what other steps I need to take to make sure I do everything properly. I found that I should also create a global redirect ...
Randy's user avatar
  • 1
2 votes
1 answer
977 views

How to find duplicate URLs in the database?

Magento 2.4.2-p1 Smartwave Porto theme We migrated from Magento 1.9.4 to Magento 2.4.2-p1. We keep getting the following Error when working with products: The value specified in the URL Key field ...
Allysin's user avatar
  • 250
3 votes
2 answers
797 views

Multiple URL Rewrites for the same product is SEO issue?

By default in Magento, while assigning categories to the product. The Magento itself creates a URL rewrites based on each category which all going to be redirected to same product page. Different ...
Rajkumar Vellaiswamy's user avatar
2 votes
0 answers
246 views

how to regenrate every product url with category path magento 2

Hey there i have been searching for solution of my issue i have multiple product slider widget in diffrent cms pages but the url of that prodcucts are http://127.0.0.1/kisna/new-prodcut.html and on ...
Sayyed Hasan's user avatar
0 votes
4 answers
835 views

Get Storefront Product URL for Magento 2

I am trying to get the storefront product URL. $_Product = $objectManager->create('Magento\Catalog\Model\Product')->load($product->getId()); echo $_Product->getUrlModel()->getUrl($...
SriLekha Lella's user avatar
0 votes
2 answers
2k views

Magento 2.4 showing 404 not found for product page loadeds from a different store view

I have a Magento 2.4.1 store with two languages (EN and DE). Let's say the EN store view is currently selected and a product URL will look like this: https://website.de/wedding-bands/wedding-band-1....
Kloppo's user avatar
  • 95
0 votes
1 answer
16 views

problem redirection on product page when using http protocol

I got a problem in magento 1.6 In production environment, I pass a product url using http, it will be converted to https://domain/catalog/product/view/id/18341/category/451 instead of https://domain/...
lazy_coder's user avatar
0 votes
1 answer
291 views

I WANT TO CREATE TWO URL'S FOR SAME PRODUCT FOR MAGENTO 2

I want to create two URLs for the same product, one URL that is with products SKU i.e. https://domainname/skuNo. And another URL is for SEO purpose i.e. https://domain name/product name.html Where ...
The Web Factory's user avatar
1 vote
1 answer
1k views

Wrong Product URL when found via category on M2

I am using Magento version 2.3.1 EE and I observed that some of the product page URL's are coming wrong when found via category even if the URL rewrites are created in the Magento admin. It is ...
Shubham Kumar's user avatar
0 votes
1 answer
305 views

How can I get the Canonical Product Url in list.phtml?

I need to get Canonical Product Url inside app/design/frontend/Vendor/Theme/Magento_Catalog/templates/product/list.phtml. I tried to use: $block->getProductUrl($_product) and: $_product->getUrl(...
KaMZaTa's user avatar
  • 205
0 votes
2 answers
824 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
0 votes
1 answer
665 views

Multiple URLs getting created for single product

I am an SEO executive and pretty new to Magento. I have got a project in which there are multiple URLs for a single product and all URLs have been indexed on Google. Here is an example of URL ...
Deepak Kumar's user avatar
2 votes
1 answer
2k views

How to redirect to specific category if product url is 404 due to product disabled in magento 2.3?

If I have disabled any product then it will redirect to 404. But I want to redirect that product url from 404 not found page to the category url in which this product is assigned. That means I want to ...
Vinod Kumar's user avatar
  • 2,045
0 votes
1 answer
32 views

Magento Product URL (rewrite)

I created a new product under category domain.com/product/alpha, and when I open domain.com/product/alpha I can see the product, however when I click the product instead of opening the URL as domain....
nix's user avatar
  • 127
0 votes
1 answer
77 views

Product URL issue in Observer Magento 1.9

I have create an Observer function which is call after product save but having some issues with product url. Getting product like: $product = $observer->getEvent()->getProduct(); Getting ...
Yogita's user avatar
  • 784
1 vote
1 answer
106 views

magento2 product custom url name_sku

How can I change my product URL to name_sku? Example: baseurl.com/shirt_35458.html also I have product url preficx that I created a module for it.
MGPM's user avatar
  • 741
1 vote
0 answers
64 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
0 votes
0 answers
379 views

Magento 2: I need to remove .html from all product page url

I am trying to remove ".html" from the URL. Attached are my catalog SEO setting in the Magento 2. As you can see I have remove the ".html" from Product URL Suffix. I have already ...
Balwant Singh's user avatar
1 vote
0 answers
133 views

Display simple product urls in magento 2 bundle selections

In a bundled product I would like to be able to show the product url from a simple product or the selected item within the bundled product as a "view item" link. So when this is selected the user is ...
Andy Woolford's user avatar
0 votes
1 answer
84 views

Plugin beforeGetUrl - not being used? (solved, facepalm)

I have grouped products "containing" simple products. I have had to make the simple products visible but while I am ok for them to appear in certain lists, I want the link to go to the parent page not ...
iphigenie's user avatar
  • 1,719
1 vote
1 answer
86 views

Inconsistent Product URL

I'm facing an issue in Magento 2.2.0 and Unero Theme 1.3.2 where there are products that have an URL like: https://example.com/catalog/product/view/id/440/s/product-url-key/57/ and the others are: ...
Marbonka's user avatar
0 votes
0 answers
148 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
1 vote
1 answer
2k views

Magento 2: Issue with Product URL rewrite on Single Store Mode

I'm using Magento 2.3.3 CE. I've enabled the single store mode on a website from Stores > Configurations > General > General > Enable single store mode After enabling the single store mode, the URL ...
Sumit's user avatar
  • 4,855
0 votes
3 answers
166 views

How to getproduct url for sales email order template in multi website

I want to get producturl in sales order email template in multi website. I have used $_item = $block->getItem(); $_objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product =...
Priya's user avatar
  • 589
0 votes
2 answers
168 views

Issue with Url key change for product in magento 2.3

I changed the url key for the Product https://prnt.sc/p9o8li but on clicking on product it is redirecting to old url. On clicking product it is going to https://ihouzit.com/Timeless-Gin-and-...
Nafsss's user avatar
  • 760
0 votes
1 answer
520 views

Magento 2: Problem with Product Links

During an Import to Update Product prices, I made a mistake. I leave the value for the Product Link empty. After the Import all Product URL change and got the value from the Product name. To face this ...
Marcel's user avatar
  • 165
1 vote
1 answer
221 views

Magento2: How to show product URL on Homepage

I have to show list of product on same category on homepage I have achieved the same using CatalogWidget but got issue with URL, It shows URL like example.net/product but I want to show URL like ...
Paras Arora's user avatar
2 votes
2 answers
841 views

Include category path in product urls in sitemap and canonical urls

I am using magento-2.3 EE. I want to include category path in product url, in sitemap urls and same should be in their canonical urls. Like in sitemap, product urls should be like - site.com/...
chanchal's user avatar
  • 417
0 votes
1 answer
2k views

Magento 2: Get Product via url with sku number in url

I have a magento 2.2.9 based site and wondering if its possible to get a product via url by having the sku in the url? so something like https://www.domain.com/shop/?sku=123 Wanted to know if there ...
Jayreis's user avatar
  • 705
0 votes
1 answer
170 views

Storewise product url save programatically in Magento 2

I have 2 different website in my Magento. I want to store different url key for each website. How to store it programatically ?
Parth's user avatar
  • 135
0 votes
1 answer
55 views

How to prevent Magento to generate urls for disabled categories?

Using Magento 1.9.x I have a lot of disabled categories that I'm utilizing in my store to view specific products on Magento frontend. Magento creates Urls for those disabled categories with and ...
Aboodred1's user avatar
  • 483
2 votes
0 answers
1k views

Magento2.2 sitemap genrate after some product url not showing properly

I have to used Magento2.2 and we are also install in our site this plugin olegkoval/magento2-regenerate-url-rewrites but we are truncate url_rewite table after run this command on our staging site ...
Rv Singh's user avatar
  • 1,617
2 votes
2 answers
1k views

magento 2.3 redirect all product urls without category path to urls with category path

I want to redirect all product URLs without a category path to their category path URLs for SEO purposes. Example - Redirect mywebsite.com/product-name.html to mywebsite.com/category1/sub-...
chanchal's user avatar
  • 417
2 votes
1 answer
631 views

Product image going to the wrong URL

I have this block at the bottom of cms pages that are created by bluefoot and when you click on the image it takes you to a long URL like if it was being searched for but if you click on "add to cart" ...
cntrl esc --'s user avatar
1 vote
1 answer
314 views

Single url for a product which is in different category in magento 2

I have a product black-jacket under the category men->tops when i click on men the url is like http://magento2/men/black-jacket.html and if i click on tops under the men then the url is http://...
Nitin Mishra's user avatar
1 vote
0 answers
61 views

product page urls changed after upgrade

I have upgraded magento from 2.1.8 EE to 2.3.1 EE. After upgrade the product page urls have changed, they should be in the format- https://site-url/parent-category/sub-category/product-name.html ...
chanchal's user avatar
  • 417
1 vote
1 answer
27 views

M1 Changing website to https breaks product pages

Currently our website is only secured on checkout. We want the whole site to be secured so we had our IT guy do that. The whole site is secured EXCEPT I cant get to the individual product pages. It ...
Amy Ling's user avatar
  • 390
1 vote
0 answers
39 views

Imported products and categories system urls return 404

We are setting up import of products and categories from suppliers XMLs. The idea is to have it automatic and we have successfully imported products and automatically generated categories using this ...
Oktarin's user avatar
  • 117
0 votes
0 answers
71 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
887 views

URL paths not reflecting url key from admin panel

I am trying to work out why some of my URLs are being presented like the below /catalog/product/view/id/75/s/whiskware-egg-mixer/category/15/ I have run bin/magento indexer:reindex but the URLs aren'...
Boss Nass's user avatar
  • 264
0 votes
2 answers
925 views

How to add product link in order email magento 2

My order mail.phtml $_item = $block->getItem(); $_order = $_item->getOrder(); <tr> <td class="item-info<?php if ($block->getItemOptions()): ?> has-extra<?php endif; ?&...
prabhakaran7's user avatar
  • 1,077
1 vote
1 answer
31 views

Removing (hiding) Magento system URLs

I am pretty sure there has to be a simple way to solve, but I just cannot find it. So, by default, there are 2 types of product rules at my store: mystore.com/catalog/product/view/id/177 mystore.com/...
Flo's user avatar
  • 11
3 votes
3 answers
2k views

Magento 2 get product id from admin product edit page

I am creating a custom grid on the product edit page, for the grid collection I need to filter based on the product id, for that I am trying to get the product id from the URL using below code $this-&...
senthil's user avatar
  • 1,729