Questions tagged [product-urls]
The product-urls tag has no usage guidance.
180
questions
1
vote
0
answers
72
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 ...
0
votes
1
answer
107
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....
0
votes
0
answers
33
views
Magento 2 Catalog URL Suffix not working
The website have 12 store views.
6 of them have .html suffix for products while the other 6 doesnt. I am not sure how that happened.
I edit the store settings for all of them to have the .html suffix ...
0
votes
0
answers
157
views
Magento 2 product export with full product url
I export products from specific merchants from magento2 admin. System -> Data Transfer -> Export.
Every thing works fine, but here I need the the url key (chest-of-drawers-grey) as a full url ...
1
vote
1
answer
87
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 ...
0
votes
1
answer
239
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 ...
0
votes
1
answer
509
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 ...
3
votes
2
answers
471
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 ...
2
votes
0
answers
145
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 ...
0
votes
4
answers
394
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($...
0
votes
2
answers
1k
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....
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/...
0
votes
1
answer
183
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 ...
1
vote
1
answer
756
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 ...
0
votes
1
answer
223
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(...
0
votes
2
answers
520
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.
0
votes
1
answer
578
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 ...
2
votes
1
answer
1k
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 ...
0
votes
1
answer
28
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....
0
votes
1
answer
67
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 ...
1
vote
1
answer
87
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.
1
vote
0
answers
57
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-...
0
votes
0
answers
312
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 ...
1
vote
0
answers
106
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 ...
0
votes
1
answer
75
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 ...
1
vote
1
answer
82
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:
...
0
votes
0
answers
127
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/...
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 ...
0
votes
3
answers
93
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 =...
0
votes
2
answers
146
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-...
0
votes
1
answer
434
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 ...
1
vote
1
answer
151
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 ...
2
votes
2
answers
651
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/...
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 ...
0
votes
1
answer
113
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 ?
0
votes
1
answer
41
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 ...
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 ...
1
vote
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-...
2
votes
1
answer
586
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" ...
1
vote
1
answer
213
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://...
1
vote
0
answers
59
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 ...
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 ...
1
vote
0
answers
38
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 ...
0
votes
0
answers
69
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
1
answer
865
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'...
0
votes
2
answers
821
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; ?&...
1
vote
1
answer
30
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/...
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-&...
2
votes
1
answer
1k
views
How to add a custom attribute value to product url in Magento 2
I am using Magento ver. 2.2.3 . I need to add a custom attribute's (brand) value to the product url, like :
http://domain.com/smeg/smeg-cooker-90cm-with-gas-hob-cream.html
For that i have overridden ...
1
vote
1
answer
212
views
Rewrite product page URLs based on that product assigned attribute URLs in Magento 2.3
I want to achieve product URLs based on product attribute for product page only. I have product attribute manufacturer, having drop downs such as lg, samsung, motorola etc.
My store category ...