Questions tagged [product-urls]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 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
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
14 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
40 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
1answer
32 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
78 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
22 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
35 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
16 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 ...
0
votes
0answers
28 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 ...
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 ...
0
votes
0answers
33 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
121 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
181 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
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/...
2
votes
2answers
162 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
72 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
39 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
209 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
83 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
122 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 ...
1
vote
1answer
162 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
41 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
25 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
0answers
69 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
210 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
49 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
173 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
26 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
80 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
21 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
36 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 ...
0
votes
1answer
163 views

How to use unicode characters in Products url in magneto2

I need to use the arabic letters in the magento2 product url.. I had researched more.. still i had no answer. I am using magento 2.2.6 version Anyone know please help me to this requirement. Thanks ...
1
vote
0answers
151 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 ...
0
votes
1answer
149 views

Get the complete path product url

I'm using Magento EE 2.2.5 I need to get the product url of a product with its category path. Presently, I'm using the code $product_url = $product->getUrlInStore(); And also tried with $...
0
votes
1answer
67 views

How to add Add frontend product url column to admin product grid in magento2

I'm trying to add a column on the product grid with the product frontend url.. I had added the grid by the below codes, etc/adminhtml/di.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
1
vote
1answer
535 views

Export Product Sku and Product_Url in magento2

Can we export product with sku and url into csv in magento2? Is there any query to get it quickly? I am looking for query to get all sku and its url key or full product_url. Please anyone help me. ...
0
votes
0answers
36 views

How to make Single Product URL

Magento Version: EE 2.2.5 In my store product detail page is accessible using three urls: 1) https://www.domain-name.com/L1category/L2category/test-product 2) https://www.domain-name.com/test-...
0
votes
0answers
62 views

How to generate xml sitemap with new request_path after URL re-write?

I have just updated request_path for the product from www.xyz.com/my_product to www.xyz.com/my_product_new through url rewrite. The request_path is inserted in the database correctly and working ...
4
votes
2answers
863 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 ...
0
votes
1answer
656 views

product url not updating magento 2

I have update product URL-key but still, the old URL is working. New URL is not working. I have run indexer command, cache flush. Also, regenerate product URL from an extension. But still, the old ...
0
votes
0answers
215 views

Find product/category id by url

I am using Magento 1.9. I will get a url from the request. I have to find product/category id from the url. I have tried these :- Magento - Load product by url Magento 1 get product or category id ...
0
votes
1answer
32 views

When you duplicate a simple product what do you do with the url

When you duplicate a simple product, what do you do with the url?
0
votes
2answers
189 views

Unable to change product URL key?

Our catalog staff accidentally changed URL key so we have to revert it back to original. We have changed and updated the product URL key to its original value: And flushed both Index and Cache ...
1
vote
1answer
201 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,...
0
votes
1answer
48 views

Magento 1 : Few product urls are getting 403 error

Most of the product urls are working fine. But Few product urls are getting 403 error.
0
votes
2answers
907 views

Magento 2 get Product Url in Foreach

In Magento 2, I trying to get the Product URL using this code $_product->getProductUrl (). But it is having only the first product's url to all the products. How to fix it. Used the Following Code:...
0
votes
1answer
93 views

How to regenerate products URLs with diacritics properly

I need regenerate urls for all products (about 3000). Befere my regeneration urls are like https://my-shop.example.com/product/view/id/xxx/s/name-of-product. I need my products urls will be like https:...
3
votes
2answers
2k views

URL Key not changing in Magento 2

I am using Magento 2.2.4, I am having too many Disabled/OutofStock products which are useless. Now the problem I am simply replacing all Disabled/OutofStock products with New Products. I can ...
1
vote
0answers
136 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/...