Questions tagged [url]

Denotes question about URL issues and custom URLs.

Filter by
Sorted by
Tagged with
0 votes
1 answer
16 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 ...
0 votes
1 answer
22 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 ...
0 votes
1 answer
24 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 ...
  • 1,436
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
1 vote
0 answers
37 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 ...
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 ...
  • 1
0 votes
0 answers
38 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 ...
0 votes
1 answer
21 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?
0 votes
0 answers
10 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)...
0 votes
1 answer
105 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 ...
0 votes
0 answers
23 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....
  • 1
0 votes
1 answer
27 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 ...
  • 1,024
0 votes
1 answer
98 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. ...
0 votes
1 answer
20 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 ...
  • 66
3 votes
0 answers
120 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 ...
  • 3,353
0 votes
2 answers
103 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) { ...
0 votes
1 answer
93 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?
0 votes
2 answers
48 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/...
0 votes
0 answers
50 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 ...
  • 3,243
0 votes
0 answers
19 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 ...
  • 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....
  • 1
0 votes
0 answers
41 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"/></...
0 votes
1 answer
37 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/...
0 votes
1 answer
182 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.
0 votes
2 answers
30 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 ...
  • 1
0 votes
1 answer
134 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 ...
  • 586
0 votes
0 answers
41 views

Magento 2.4 Redirects - Bulk Import using XML?

I have almost 800 links coming up in Google 404 that I need to add redirects for. I see how to add them manually one at a time but I do not see the functionality for a bulk import unless I am missing ...
  • 1
0 votes
0 answers
19 views

How to remove link from name,qty,name,sku in Magenot 2 Product Admin Grid?

I want to remove single page link from ( name, qty, name, SKU ) columns in Magento 2 Product Admin Grid? So on clicking this single page doesn't open in Magento 2 Admin. Can anyone suggest how to do ...
  • 586
0 votes
1 answer
284 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, ...
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 ...
  • 330
0 votes
1 answer
210 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.
  • 330
0 votes
1 answer
236 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 ...
  • 1
0 votes
2 answers
588 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
  • 1,114
0 votes
0 answers
93 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 ...
0 votes
1 answer
62 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"....
  • 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 ...
0 votes
1 answer
27 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.
  • 1
0 votes
0 answers
36 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 ...
0 votes
1 answer
260 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 ...
0 votes
1 answer
154 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 ...
  • 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 ...
  • 580
0 votes
0 answers
79 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?...
  • 227
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 ...
  • 2,116
0 votes
1 answer
701 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 ...
4 votes
0 answers
32 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-...
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-...
0 votes
1 answer
114 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-...
0 votes
1 answer
64 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.
0 votes
2 answers
561 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 ...
1 vote
0 answers
293 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\...
  • 4,672

1
2 3 4 5
20