As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [url]

Denotes question about URL issues and custom URLs.

Filter by
Sorted by
Tagged with
0 votes
2 answers
68 views

Magento 2: How to pass the parameters to another URL?

I'm new in magento 2, my question is how to send parameters with results responses to another url whenever i click "Place Order" and before proceeding to success page. Using event and ...
vinz vinz's user avatar
0 votes
1 answer
36 views

Only show current category in category path?

Magento 2.4 A category looks like this: https://www.example.com/cat1/cat/cat3.html I want it to look like this: https://www.example.com/cat3.html So what I want is only the current category, not the ...
user4095519's user avatar
0 votes
1 answer
61 views

Add Custom Link to Sales Order View Admin Panel

How can I add a custom link to 'sales/order/view/order_id/123456' adding an slash after the order_id with route name "download" so it becomes sales/order/view/order_id/6710/download My ...
David Buik's user avatar
0 votes
1 answer
191 views

Remove trailing slashes from store URL's - Magento 2.4

We set the "Add Store Code to URLs" option to Yes, so now our store URL's looks like: https://www.example.com/en/ https://www.example.com/de/ https://www.example.com/fr/ And by default ...
JGeer's user avatar
  • 1,446
0 votes
0 answers
6 views

URL Rewrites / Cloned Categories

I have just switched a root category over for our store and the URL rewrites have not applied. Any idea how I can resolve this? Cheers
JoshTopley's user avatar
1 vote
0 answers
68 views

when submitting the form from the formbuilder the hash(#) value get removed from the url

I'm trying to submit the request through the GET request by sending the fields as the query parameters, example.com/web/connector/#/home?(other query parameters) when the request is submitted the URL ...
shoaib sheikh's user avatar
0 votes
0 answers
12 views

Eliminate duplicate URLs from getting indexed but not from the website

So I have most of my products with more than one URL website.com/product website.com/category/product website.com/category/subcategory/product website.com/category/subcategory2/product I saw that ...
Marco's user avatar
  • 1
0 votes
0 answers
92 views

Magento 2 - Change Base URL Solved If Links Won't Change

Just coming back round to coding in Magento again and found an odd issue where the base URL wouldn't update on the links within the web page / navigation. With a base URL issue that seemed to last for ...
JosephGourvenec's user avatar
0 votes
1 answer
23 views

how to fix to show main domain when input subdomain in Magento?

I cloned Magento project from main domain to subdomain in cPanel. I fixed secure and unsecure URL in database. But if I input subdomain URL, it show main domain URL. How can I fix it?
Bohdan V.'s user avatar
0 votes
0 answers
20 views

Delete target path programmatically from sitemap.xml file

Hello there added custom URL Rewrites for basically every path. For every path the custom URL Rewrite works fine, except for this one: In sitemap.xml I see the both paths (request path and target path)...
Kristijan Isajloski's user avatar
0 votes
1 answer
123 views

URL Rewrite not working only for one specific path

I want to ask you for help regarding URL Rewrites. As you can see here I've added the URL rewrite for this path but in the sitemap.xml file there is still not updated it's an old (target path) so the ...
Kristijan Isajloski's user avatar
0 votes
0 answers
28 views

magento 2 category url with timestamp

how to remove the timestamp in magento 2 category page url when clicking next page When I enter a category page and click page 2, page 3, and so on, my category URL is like this: mysite.com/categoryA....
Johnny's user avatar
  • 1
0 votes
1 answer
34 views

Which controller the export hits

I'm trying to understand where the controller of export stock sources is being hitted My url is the following /admin/export/export/key/fjkzegjzehgjze/entity/stock_sources/file_format/csv The code ...
Claims's user avatar
  • 1,054
0 votes
1 answer
111 views

Magento 2 In the UI form, Edit urlInput is not working properly

I've created a UI form with a URLInput field. For creating new entries, it works fine. However, the 'open in new tab' setting is always checked in the edit form. The value has been binded correctly. ...
Jancy Abraham's user avatar
0 votes
1 answer
27 views

How to include category url keys in product URLs

I am preparing to get Magento certified, doing some test questions I have found this: A client has asked you to include category url keys in product URLs. How is this done? A. Create an observer for ...
Noty's user avatar
  • 66
4 votes
0 answers
152 views

Magento 2: Multistore view different language url key language switch page is redirect to home page

Magento 2.4.5 Facing issue with multistore view language change CMS page is redirecting to homepage. We have two store view English and Spanish. Spanish store view CMS page name is add with Spanish ...
Kirti Nariya's user avatar
  • 3,373
0 votes
2 answers
162 views

What is wrong in my ajax url?

I have written the following code the js $.ajax({ showLoader: true, cache: false, url: url.build('multiplecustomer/account/Logout'), type: "POST", }).done(function (data) { ...
Mohmad Ashik M A's user avatar
0 votes
1 answer
103 views

what is the correct way to add ajax url?

My controller file is Vendor/MultipleCustomerAccount/Controller/Account/LogoutPost.php what should be the ajax url?
Mohmad Ashik M A's user avatar
0 votes
2 answers
70 views

Media url returns nothing in Magento 2

Hi I have a problem with passing an image to a view via WYSIWYG editor. I add the image in the editor, it displays correctly in the editor. Its structure is <img src="{{media url='wysiwyg/...
meracle3's user avatar
0 votes
0 answers
55 views

Remove "media" from media URL in Magento 2.4.4

How can we remove "media" from the media URL? Like below: www.abc.com/catalog/product from www.abc.com/media/catalog/product. Any help will be appreciated. Thanks in advance. Magento version ...
Devidas's user avatar
  • 3,253
0 votes
0 answers
20 views

M2 - Layered navigation adding "_1" in URL

I have an issue with the layered navigation, it's adding _1, _2, _3 etc. behind the URL when the values of an attribute are the same. For example; We have an attribute called "Brand", it ...
n00bly's user avatar
  • 623
0 votes
0 answers
18 views

On frontend when we click one menu and go for other menu its show 404

On frontend when we click a menu item, for example www.example.com/shop/food.html, that will open. However on that page, if we click on another category menu it shows 404 and goes to a URL such as www....
Aniket's user avatar
  • 1
0 votes
0 answers
49 views

Export correct URL in product feed with XSL

I try to export product URL:s for my Magento 2.3 website using this line of code in an XSL template: <xsl:element name="link"><xsl:value-of select="product_url"/></...
Alexander 's user avatar
0 votes
1 answer
42 views

How to get vendor_module/view/frontend/web/images path within Setup/Patch script?

I need to get the url of the image located in the module. I need to run a Patch script because I am updating a cms block with an additional image. The image path I am getting is localhost/pub/static/...
Justin Collins's user avatar
0 votes
1 answer
205 views

I want to change url of wishlist to favourites using url rewrite

I want to do URL Rewrite of wishlist link to favourites but don't know how to do it if anyone can mention the whole process it will b great. I really appreciate any help you can provide.
Parth Patel's user avatar
0 votes
2 answers
34 views

in my url the index.php path appears

my current path ` http://magento2/index.php/router/controller/action preface this address (index.php) is added to the line after the redirect, but there is no error I didn't do anything to make it ...
esca7a's user avatar
  • 1
0 votes
1 answer
165 views

The value specified in the URL Key field would generate a URL that already exists in Magenot 2.4

I have migrated data from Magento 1.9 to Magento 2.4. All things is working well. But when in open any categories and open Product in Category tab -> then click on reset filter -> search a ...
Prits's user avatar
  • 626
0 votes
1 answer
353 views

Magento 2.4 constructing controller URL admin(backend) in JavaScript

I tried to make a simple ajax call to my controller, but I can't generate the url to make the request requirejs(['jquery', 'Magento_Ui/js/modal/confirm', 'mage/url'], function ($, confirmation, ...
Stiven Gallardo's user avatar
1 vote
0 answers
35 views

Magento 2: Setup domain for a multi-store

I want to assign a new domain 'example.ai' to my current multistore 'www.mywebsite.ca/mystore/' I tried adding 'example.ai' on storeview level to System->configuration->General->Web-> Base ...
mechanic's user avatar
  • 340
0 votes
1 answer
259 views

Magento 2: Rewrite category URLs programmatically

I want to remove category ids from category URLs and replace them with the current category or subcategory name. Is this possible? Any help will be appreciated.
mechanic's user avatar
  • 340
0 votes
1 answer
266 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
0 votes
2 answers
651 views

magento 2 get CMS page URL path

In magento 2.4.3, How to get the current page URL in block file. I tried this solution, but not working. My Sample URL: https://magento.com/questions-sample Expected Data to get: questions-sample
Saravanan DS's user avatar
  • 1,118
0 votes
0 answers
112 views

PROBLEMS WITH SEO MAGENTO 2 SAME URL FOR DIFFERENT STORE VIEWS

I have one magento 2 with two stores (two different domains ) each store with two store viewS (english and spanish) both stores share almost the same products. Each store have the same URL for the ...
jb019283's user avatar
0 votes
1 answer
77 views

Magento 2 : How to get hreflang from address url?

When i have the address: <link rel = "alternate" hreflang = "de" href = "..." />. I would like to take the hreflang value from this address, meaning "de"....
bambo's user avatar
  • 3
0 votes
1 answer
40 views

SEO-URL Multistore problem, website-url is fine, but product-url stays the same

I have a multistore website, but the seo is not working totally fine Like the title says: The website-url is fine, but product-url stays the same. But the product-url should be different for every ...
Always_home's user avatar
0 votes
1 answer
29 views

How to create custom module to remove .html part from product page?

I want to create a custom module to remove .html part from product page. I have found solution only from admin panel but want editing in module. Please help me in doing this.
komal's user avatar
  • 1
0 votes
0 answers
38 views

Add string (not store code) to url

I want to add string to the end of url, but not the store code. Example: I go to site.com/store_code, i want to replace the store code to my own string. (because store_code has to be unique). I enable ...
Yannick Waelkens's user avatar
0 votes
1 answer
307 views

SiteMap problem after URL change

I changed my domain name after a Magento 2 installation, modified the Magento configuration to put the new URL there but the generated sitemap still shows the link of the products with the old URL. I ...
Benjamin Box's user avatar
0 votes
1 answer
162 views

Magento adding .html in the middle of url after last category

I migrated all my products and categories (thousands) over from M1 to M2 and persevered all the URL writes. I have now found that if we modify a category in M2 it is adding a .html to the end of the ...
neit's user avatar
  • 63
0 votes
2 answers
1k views

Magento 2: Invalid header value detected

On opening a certain product page, we are getting the following error "exception":"[object] (Zend\\Http\\Header\\Exception\\InvalidArgumentException(code: 0): Invalid header value ...
GenZ Dev's user avatar
  • 590
0 votes
0 answers
88 views

how to append url params by default forcefully in magento2

I want to add current customer session custom field to the every category url. lets say if user typed in the browser http://test.html , this should forcefully change to http://test.html?...
sivakumar's user avatar
  • 237
0 votes
1 answer
22 views

URL key for specified store already exists while importing products through custom script

I have some of the products already added in magento admin. And now i am trying to create same name product with the use of script that time i am facing error "URL key for specified store already ...
ZealousWeb's user avatar
  • 2,136
0 votes
1 answer
746 views

Magento 2.4 getting wrong css & js path on frontend

I'm getting the wrong media, JS & CSS file path on the frontend and backend after installing Magento 2.4.2. Please review the below URLs we are getting. I've tried updating the value in the ...
sourabh yadav's user avatar
4 votes
0 answers
34 views

I am getting warning message of this "This site ahead contains malware" in google chrome

After I installed the local setup for Magento 2.1.16 with the Nginx server. When I try to visit my site in chrome it notifies me with the site ahead contains malware. I have tried removing all third-...
Rajesh Selvam's user avatar
0 votes
1 answer
23 views

Image is not loaded in product detailed page only magento 2.3

I have added the image in admin panel backend image show homepage,category page show but product detailed page image is not shown certain url link.i have shared. URL:https://sarikart.com/3003maroon-...
maharajikr Kr's user avatar
0 votes
1 answer
139 views

Suppose I reach to this page customer/account/login/, after I click on "Sign In" button and i found referer feature not working :(

How to echo or print the referer url(history page) from where I reached to that login page. I have to implement something that after login user should not reach to dashboard instead he should re-...
Vibhore Jain's user avatar
0 votes
1 answer
71 views

Build Customer View URL on Controller

How can I programmatically build this url: http://127.0.0.1/magento2/sales/order/view/order_id/61/? Im in a custom controller with the current Order object.
Sergio Vargas's user avatar
0 votes
2 answers
636 views

Magento 2 Add category path to product page

How do I add category to breadcrumbs on products page so it says Home -> Category -> Lenovo Thinkpad From the Admin panel I've set Use Categories Path for Product URLs -> YES But it only ...
Nicklas Gilbertsson's user avatar
1 vote
0 answers
321 views

Magento 2 Unit Testing with Helper dependency

I have a Helper class and a Model class, which looks like <?php # File: app/code/MagePsycho/Catalog/Helper/Data.php namespace MagePsycho\Catalog\Helper; use Magento\Framework\App\Helper\...
MagePsycho's user avatar
  • 4,672
0 votes
2 answers
161 views

How to redirect domain.com to www.domain.com?

I have this code in .htaccess Options +SymLinksIfOwnerMatch RewriteEngine on RewriteCond %{HTTP_HOST} ^domain.com$ [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L] But it still appears ...
Maroun's user avatar
  • 1

1
2 3 4 5
20