Questions tagged [url]

Denotes question about URL issues and custom URLs.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 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 ...
0
votes
0answers
13 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 ...
0
votes
0answers
8 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 ...
0
votes
1answer
19 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"....
0
votes
1answer
24 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
1answer
18 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.
0
votes
0answers
33 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
1answer
25 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
0answers
22 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 ...
0
votes
0answers
10 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 ...
0
votes
1answer
98 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 ...
0
votes
0answers
23 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?...
0
votes
1answer
15 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 ...
0
votes
1answer
196 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 ...
2
votes
0answers
13 views

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

After I installed local setup for magento 2.1.16 with nginx server. When I try to visit my site in chrome it notify with site ahead contain malware. I have tried removing all third party extensions. I ...
0
votes
0answers
22 views

Magento 2 Sub Category Links Broken

When I use the layered navigation links on my category page to go to a sub-category, the link removes a letter from the category name. For example: my category url is example.com/bathroom When i click ...
0
votes
0answers
21 views

set three page on one controller action URL

set three url on one controller action. exp: i have three category url like below mydomain.test/seller/index/category/suppermarket mydomain.test/seller/index/category/suppermarket/groceries mydomain....
0
votes
1answer
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
1answer
20 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
1answer
18 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
0answers
82 views

Url Not working - Category Pages not Loading

I ran the following commands to enable a module on magento 2.4.1: bin/magento module:enable testapp bin/magento setup:upgrade The command executed successfully, but this caused the images on my ...
0
votes
2answers
124 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
0answers
101 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\...
0
votes
2answers
39 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 ...
0
votes
1answer
23 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> ... &...
0
votes
0answers
8 views

Magento 1.7 - SEO URLs - Rewrite URL in Sitemap for Products

we have Magento 1.7 in use. We would like to read our SEO URL for the products from the database. We have found that the attributes for "url_key" do not match the URL from the sitemap of ...
0
votes
0answers
32 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->...
0
votes
1answer
144 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: &...
0
votes
0answers
8 views

Remove products url from Google search one store view

I have multiple store views. Want to remove product url only for one store view
0
votes
0answers
21 views

jQuery (server side) search and sort using Ajax

I tried to create search and sort from live URL using Ajax , i used do search function and i managed to retrieve the data from the URL . I am showing Ajax response in select options as below code. I ...
0
votes
0answers
20 views

Magento 2.3.5 layered navigation (left sidebar) url adding category id not the name

I am configuring a Magento 2.3.5 shop. After clicking on a subcategory name in the layered navigation the category id (?cat=) is showing in the url instead of the name. Example: www.myshop.com/shoes/?...
0
votes
1answer
33 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 ...
0
votes
1answer
72 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 ...
0
votes
1answer
18 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 ...
0
votes
0answers
26 views

Frontend Links are not working properly - M2

I have issue in website frontend links, When i am opening any URL, that is considering as base url. For example My base url is www.xyz.com and categories url are green and red, both are parent ...
1
vote
2answers
248 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>/<...
0
votes
1answer
198 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 ...
0
votes
0answers
28 views

Changing Url magento 2

I want to change www.m2.com/authors/view/index/id/1 to www.m2.com/authors/author_name.html how can i achieve this help
0
votes
1answer
25 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/...
0
votes
2answers
50 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 ...
0
votes
1answer
15 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? ...
0
votes
2answers
176 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 ...
0
votes
0answers
119 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 ...
0
votes
2answers
169 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.
0
votes
3answers
396 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 ...
0
votes
1answer
73 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....
0
votes
1answer
268 views

Multiple URLs getting created for single product

I am an SEO executive and pretty new to Magento. I have got a project in which there are multiple URLs for a single product and all URLs have been indexed on Google. Here is an example of URL ...
0
votes
1answer
41 views

Remove .html from category in product URL?

For some reason, I am getting .html in my product URL, like so: https://example.com/mycategory.html/myproduct.html. I want to remove .html from mycategory when I am on a product page. Is there a ...
1
vote
2answers
36 views

Product image by ftp url

I need to pass an url of an ftp to be the product image by the magento api, can I do this? Something like { "attribute_code": "image", "value": &...
1
vote
1answer
90 views

url magento 2 to get manufacturer value on all website

why url like this do not work when we try to access to all product of a specific attribute value. let's take manufacturer as an example::https://website.com//?manufacturer=1437

1
2 3 4 5
19