Questions tagged [url]

Denotes question about URL issues and custom URLs.

Filter by
Sorted by
Tagged with
0 votes
1 answer
24 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 ...
user avatar
  • 526
0 votes
0 answers
10 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 ...
user avatar
  • 1
0 votes
0 answers
16 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 ...
user avatar
  • 526
0 votes
0 answers
12 views

I got an issue consistent with which URLs it does generate on my Magento 2 website

First time using Magento here. I have styled the home page and product view page. The product view is working with URLs: https://domain.com/doors/exit-devices/parts/von-duprin.html But when I click to ...
user avatar
0 votes
1 answer
22 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, ...
user avatar
0 votes
0 answers
13 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 ...
user avatar
0 votes
0 answers
27 views

sensitive URL available for anyone, help!

I'm facing an issue that specific URLS are available for everyone, these URLS contain sensitive file and should be displayed only for that specific customer. For example: John123 has an invoice that ...
user avatar
0 votes
0 answers
23 views

My product URL is becoming the same as title. Can't optimize product URL

In the beginning, Thanks in advance. I know there are so many experts in Magento. Could you please help me? I am facing a new issue in my Magento ver. 2.4.3 When I upload a product initially I don't ...
user avatar
0 votes
1 answer
40 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.
user avatar
0 votes
1 answer
70 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 ...
user avatar
  • 1
0 votes
2 answers
140 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
user avatar
  • 1,094
0 votes
0 answers
9 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 ...
user avatar
0 votes
0 answers
30 views

Invalid security or form key. Please refresh the page, Grid Implementation

I had created a custom admin grid and when I enter the newly made grid in the admin catalog site, gives an error as in the title appears. Here is my index.php namespace Warsaw\Weather\Grid\Controller\...
user avatar
0 votes
0 answers
19 views

Magento 2.3.5-p1 How to add a prefix to the product url?

I am working on Magento 2.3.5-p1 and I need to add a prefix in the product urls just before the product name. I have tried with this example but there is a deprecated function so it fails. So I have ...
user avatar
  • 64
0 votes
0 answers
14 views

Adding a suffix/unique URL for bundled products

I currently have bundled products that are broken down by size. For example, Grey T Shirt (Bundle) Small T Shirt Medium T Shirt Large T Shirt Currently the url is example.com/greytshirt Is there a ...
user avatar
  • 1
0 votes
0 answers
15 views

Upload Image URL is wrong in Magezon Blog - Magento 2.4.2

Hi Guys I am using the magezon blog, in that when trying to upload an image the image is URL is getting 404 Error when I checked it I found this in the network before the URL there is white space so ...
user avatar
  • 300
0 votes
1 answer
24 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"....
user avatar
  • 3
0 votes
1 answer
30 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 ...
user avatar
0 votes
1 answer
21 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.
user avatar
  • 1
0 votes
0 answers
34 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 ...
user avatar
0 votes
1 answer
66 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 ...
user avatar
0 votes
1 answer
57 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 ...
user avatar
  • 53
0 votes
0 answers
14 views

Multistore website where one storeview has a path

I'm looking to set up a multistore website where a single store view will have a path within the URL. For example, website.co.uk will be the UK store view and website.com/en_US will be the US store ...
user avatar
  • 11
0 votes
1 answer
318 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 ...
user avatar
  • 548
0 votes
0 answers
31 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?...
user avatar
  • 207
0 votes
1 answer
18 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 ...
user avatar
  • 1,948
0 votes
1 answer
366 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 ...
user avatar
4 votes
0 answers
27 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-...
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-...
user avatar
0 votes
1 answer
44 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-...
user avatar
0 votes
1 answer
21 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.
user avatar
0 votes
2 answers
331 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 ...
user avatar
1 vote
0 answers
167 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\...
user avatar
  • 4,592
0 votes
2 answers
66 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 ...
user avatar
  • 1
0 votes
1 answer
30 views

Magento 2 force secure URL via XML?

In M1 it was possible to add some lines to config.xml to force secure urls for certain pages ... <?xml version="1.0"?> <config> ... <frontend> ... &...
user avatar
  • 11.5k
0 votes
0 answers
50 views

Redirect url with key formula in Magento 2

I'm trying to do this in Magento 2: I have my url : https://www.example.com/page/ I'd like to add after /page a key value. Example : /page/key1, /page/key2 ... Then I get the key value with $this->...
user avatar
1 vote
3 answers
432 views

CMS Page Save - Url Key - "The value specified in the URL Key field would generate a URL that already exists"

I've upgraded to Magento 2.3.6 from 2.3.4 and am encountering this error anytime I try to update and save a CMS Page. It's limited just to CMS pages. Products and Categories are fine. The error is: &...
user avatar
0 votes
1 answer
49 views

Magento generates duplicate urls

I am new to Magento and I do not yet master the PHP language. (Magento ver. 1.9.4.2 I have a problem with the automatic generation of duplicate urls. I searched several forums but none of the ...
user avatar
0 votes
1 answer
121 views

Magento2 create custom dynamic routes

Magento2 how can I create custom dynamically routes/URL ? I need URLs as below For e.g. https://example/find-a-store/nsw/tuggerah/ Here in URL, nsw & tuggerah will dynamic generate I used below ...
user avatar
  • 3,426
0 votes
1 answer
21 views

Magento 2 - Current url not work well in copyright section

I need to get the current url in the copyright.phtml section. This is my code: echo $this->getUrl('*/*/*', ['_current' => true, '_use_rewrite' => true]); After clearing the cache it seems to ...
user avatar
  • 285
1 vote
2 answers
561 views

Retrieve product url with category in the graphQL

I've enabled at backoffice the usage of the category inside the product url by setting this option: When I access the magento frontend, I can now access the product with the url <category>/<...
user avatar
  • 218
0 votes
1 answer
340 views

Magento 2 - remove .html from URL by using .htaccess

We have some wrong URLs in our store ending with .html. If the user opens such a URL, then the .html should get removed, otherwise the site cant get found. So I added this rule to my .htaccess file in ...
user avatar
  • 2,390
0 votes
1 answer
28 views

404 Page Categories Not Found

We have problems with page 404 page and our URLs have two formats without knowing why. See the example below. www.mywebsite.com/catalog/category/view/s/herboristerie/id/419/ (Okay) www.mywebsite.com/...
user avatar
  • 17
0 votes
2 answers
196 views

how to get image from a module

in my case there is a picture inside my module and I want to get that image inside an HTML file (it's an html file for email header), but when I use Magento syntax it doesn't appear, I have got the ...
user avatar
  • 109
0 votes
1 answer
18 views

Is changing to canonical urls a bad idea if you have an established website with thousands of backlinks?

I have a magento website with thousands of backlinks. I just realized that the categorical structure is negatively affecting my seo. Will switching to canonical break many backlinks? Is it a bad idea? ...
user avatar
0 votes
2 answers
327 views

Magento 2: How to generate backend url with key from frontend?

I need to generate backend url with key like this: https://m2.com/admin/test/test/index/key/123XXXX using URL builder $this->getUrl('test/test/index') how can i achieve this from the frontend ...
user avatar
  • 167
1 vote
0 answers
182 views

How to change Filter Url in Magento 2

How to change the URL of the Magento 2 store when Filter is applied. When I apply any Filter the URL looks like https://jpm2.mydemoweblink.com/watches/alpina?jpf_gender=6780 where I want to change the ...
user avatar
  • 1,434
0 votes
2 answers
262 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.
user avatar
0 votes
3 answers
560 views

Changed Base_Url and Now I am getting 404

I just migrated a Magento2 site from a cloud server to my localhost to do some developer work on. I have everything I need installed and ready to go. I am just trying to redirect the Base-URls. I ...
user avatar
0 votes
1 answer
102 views

Re-direct Category Menu item to different URL

I want to redirect my Menu sub item to a different URL how can I do that? Like Blog Menu Item to Dropbox.com I want the Blog menu to be redirected to : a seperate URL to new website for example: www....
user avatar

1
2 3 4 5
19