Questions tagged [product-urls]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
15 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(...
1
vote
2answers
33 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
0answers
17 views

Magento 2 Import Images form external URL Taking Infinite wait

My csv format is like this: sku,base_image,small_image,thumbnail_image,additional_images 7611009955,https://files.plytix.com/api/v1.1/file/public_files/pim/assets/35/ca/ca/5c/...
0
votes
1answer
30 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 ...
0
votes
0answers
29 views

How to exclude disabled or out of stock products from sitemap.xml in Magento 2.3

How to remove disabled products and out of stock products from sitemap.xml. Currently, all URLs are showing in the sitemap. I am using Magento 2.3
2
votes
1answer
35 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
1answer
21 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
1answer
24 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
1answer
15 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
0answers
19 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
0answers
50 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
0answers
20 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
1answer
25 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
1answer
47 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
0answers
44 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
1answer
495 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
0answers
16 views

Product url takes english store view url in magento 2

In my website, Only in one category , products are taking English store view URL instead of taking Swedish store view URL. So its taking products/lockers/product_name instead of sortiments/kladskap/...
0
votes
3answers
47 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
2answers
47 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
1answer
140 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
1answer
63 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 ...
0
votes
2answers
196 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
1answer
685 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
1answer
23 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
1answer
19 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 ...
0
votes
0answers
444 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
2answers
410 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
1answer
315 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
1answer
66 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
0answers
45 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
1answer
18 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
0answers
34 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
0answers
37 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
537 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
2answers
458 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
1answer
25 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
2answers
765 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
0answers
486 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
1answer
70 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 ...
0
votes
2answers
655 views

redirect to the product url from observer or controller magento 2

i want to redirect from observer to the default magento product url from observer. public function __construct( \Magento\Framework\App\ResponseFactory $responseFactory ) { ...
0
votes
2answers
179 views

Load Custom Template file with argument as product id or sku in magento2

I have created a custom module and calling that template file from the CMS page as like below. {{block class="Vendor\Module\Block\Custom" template="Vendor_Module::custom.phtml"}} In templates/...
1
vote
1answer
679 views

Products just redirect to search results page

All of my products are now redirecting to catalog search. i.e. /bonfire-firma-3-in-1-stretch-mens-snowboard-jacket-2019.html goes to /catalogsearch/result/?q=bonfire-firma-3-in-1-stretch-mens-...
0
votes
0answers
310 views

how can I change the category and url structure?

How can I change the magento 2 url structure ? For categories I would like: Bike Bike/Shoes Bike/Shoes/Mens etc.... for products I would like the product name i.e /etnies-cyprus-scw-x-32-shoes-...
1
vote
0answers
31 views

Magento1.9 URL Issue for Duplicate Name Products

I am facing an issue where On my store more than 2 products have the same name things are going fine on a low range of products, As Magento will update URL on saving in the catalog_url_rewrite table ...
0
votes
1answer
448 views

how to get ProductUrl at backend , in magento2?

I wan to get productUrl at backend side. I am trying it by productrepository. I am getting right url at custom controller. But when I'm trying it in import module's start controller I'm getting ...
0
votes
2answers
93 views

Two Url's for one product

i have one product with two different url's https://dutchmanaxles.com/products/axle-housing-rearend-hardware/rcv-934-cv-joint-lightened.html and https://dutchmanaxles.com/rcv-934-cv-joint-lightened....
1
vote
0answers
270 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 ...
0
votes
1answer
60 views

Magento 1.9: How to delete a wrong URL pointing to a product review on a different website (same server)?

I am running two independent websites on a Magento 1.9.3.9 installation. Today I discovered when searching for a product which is sold in one Magento website, that the Google search result returns a ...
0
votes
1answer
32 views

Core URL re-write table - delete URL entries for deleted products

We are on Magento Version 1.9.3.7 and have been using Magento for a few years now. When we moved our site to the live site from the development site, we deleted all the development products but looks ...
0
votes
1answer
61 views

Show message for disable product : M2

Is there any way to show any message for disable product at product details page? When i search product name in google, it gives product URL in search result. When product is disable at that time it ...