The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [product-urls]

The tag has no usage guidance.

74 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
2answers
945 views

Magento 2| Url regeneration for catalog

I have tried to regenerate urls for categories and products after migration from Magento 1.9.x to Magento 2.2.x through following modules: Url Regenerator 1 Url Regenerator 2 These 2 generates the ...
4
votes
1answer
468 views

Modify dynamically created product url in magento 2

I have enabled "Use Categories Path for Product URLs". Because of this, I get category path in product url. But when we search the product, it redirect to the product url that does not contain ...
4
votes
1answer
693 views

Magento 2.1 Product url shows two times suffix

My store product url shows two times .html as suffix like below http://localhost/m2migration/canape-chesterfield-assise-capitonnee-cuir.html.html This issue arised after ubertheme migration. Can you ...
3
votes
3answers
288 views

Anyone know of a tested script to regenerate url-keys?

I have a client with a pre-existing Magento site in production mode. When the site was created the client was not informed of the importance of the url keys attribute in that he had to make it SEO-...
2
votes
1answer
105 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" ...
2
votes
2answers
208 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
106 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 ...
2
votes
3answers
3k views

Magento 2 Get Product Url For Specific Store

I have multi stores enabled in my Magento instance. I am trying to get product url for each store as I need to index data in Elasticsearch. What I have tried but not getting the result with store ...
2
votes
0answers
963 views

M2: Is `url_path` used for anything?

I'm working with a catalog in M2 that has been somehow migrated (don't know how). It has url_path migrated and has the form of url_key + html. This is causing the URL rewrites to create URLs that end ...
2
votes
1answer
316 views

Add product sku in URL

How can I dynamically change the url of a product? Now I got this url www.domain.com/product-name.html I need to add SKU, to my url like this: www.domain.com/product-name-SKU.html
2
votes
1answer
566 views

Remove second level category from product url

I need to display only first level category inside product url. If visitors browse and click product inside categorylevel1/categorylevel2.html, I need to show domain.com/categorylevel1/product.html ...
1
vote
1answer
45 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 ...
1
vote
2answers
48 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-...
1
vote
0answers
37 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
17 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
32 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 ...
1
vote
1answer
23 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/...
1
vote
1answer
276 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-...
1
vote
0answers
26 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 ...
1
vote
0answers
206 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 ...
1
vote
0answers
176 views

Issue with Magento 2 generated sitemap.xml

I'm using Magento's built in sitemap generation tool and have it set to generated nightly. The issue I'm facing with it is that the urls in the sitemap do not match the ones found on the site. To ...
1
vote
1answer
244 views

Getting Wrong Product URL on Product Listing Page

If a product has assigned in multiple categories.on product listing page, product URL remains the same for each category. e.g- Suppose a product "A" has assigned in category "B","C" & D where B,C,...
1
vote
0answers
144 views

Incorrect Backend Url from getUrl() method

I am trying to write link to Payment Transaction to Oder's comment. But it seems UrlBuilder generates incorrect security key for the link. Link from transaction page: backend/sales/transactions/...
1
vote
0answers
35 views

SQL Query - is this Query safe to run for my Magento 2 store

I want to change all my downloadable product from link_file to url_file, so I created a query for that. Can I get advice if this query is safe for me to run. UPDATE downloadable_link SET link_url = ...
1
vote
0answers
13 views

MULTIDOMAIN - Even if I change the URL on a product, the old version is being used

I am running a multidomain store, Magento 2.2.1 CE. The default value is in Danish. I created an Italian domain, where I need Italian URLs. In the backend, I go to a product, I select Italy as store ...
1
vote
0answers
20 views

Turn system URLs into canonical URLs

I've inherited a site that was M1 and using system URLs. I have migrated the product data over to an M2 installation. Is there a way now to convert those system URLs to canonical URLs?
1
vote
0answers
136 views

Product URL issue when same product assigned in multiple category

I need to know how exactly Magento creates URLs when the same product is added into multiple category and when include category path in product URL is set to "YES". Will it create two separate URLs ...
1
vote
2answers
488 views

Product url's ends with html.html

I have migrated all my products from Magento 1.9 to 2.0. All the products url's are ending with .html like html.html sample link: http://www/domain.com/condenser-microphone.html.html
1
vote
1answer
912 views

Magento EE Create Custom Redirect for old URL

I have a question regarding URL redirects on product records in Magento Enterprise Edition 1.14.2.1. I am noticing that URL redirects are not being created when a product's URL key is changed, even ...
1
vote
1answer
41 views

Require a solution for solving self generated 404s that meets our SEO needs

Our Setup: We use Magento Community (v 1.8.1) and use Microsoft Navision to manage our business processes in the backend (product info, stock levels, ordering, warehousing, etc) and the Navconnect ...
1
vote
0answers
119 views

Adding products in onepage

I'm trying to add a simple shipping and handling fee apply when the customer chooses to ship to different address in onepage checkout. It does add the simple product to cart but it refreshes the page ...
0
votes
2answers
31 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
19 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 ...
0
votes
2answers
30 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
43 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
0answers
24 views

Magento 2.1: Want to change the product URL structure

Want to change the URL structure in Magento 2.1 like below: www.example.com/sku/title I made it and it works on admin panel. when I create product on the search engine optimization tab get exactly ...
0
votes
1answer
13 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
19 views

Use relative URL's for static content in Magento 2

Is it possible to use relative URL's in Magento 2? So change links like https://www.domain.com/my-product-title to /my-product-title. And also use relative URL's for javascript and css references?
0
votes
0answers
93 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 ...
0
votes
0answers
40 views

Url Rewrite Issue in product duplication

I am facing a weird situation regarding product url rewrites on product duplicates. I do have multi stores like French and English store out of which French is currently disabled. When we duplicate ...
0
votes
0answers
35 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
214 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
313 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
89 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/...
0
votes
0answers
141 views

Magento 2 keeps adding category path to product url in multistore

I have a little problem in Magento 2 Multistores... My URL rwewrites keeps adding category paths to products urls even when config settings "Use category path for product URLS" is set to "no".. I ...
0
votes
0answers
84 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-...
0
votes
0answers
72 views

How to get Product Rewrite url in magento 2 by Query

I need Rewrites URL in Magento 2 by query. I tried below code. <?php namespace Dev\Core\Helper; use Magento\Framework\App\Helper\Context; use Magento\Framework\App\ResourceConnection; class Cart ...
0
votes
1answer
31 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
0answers
89 views

Products getUrlInStore() always uses base url

Maybe i got it wrong, but imho getUrlInStore() should return the store URL with configured base URL. I want to link from admin product edit page to frontend product page ... Example: Test product: ...
0
votes
1answer
24 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 ...