Questions tagged [url]

Denotes question about URL issues and custom URLs.

Filter by
Sorted by
Tagged with
1
vote
3answers
16 views

change product URL programatically

I need to change all my product URLs and I would like to use a code snippet to use it. All I need is a simple code which is Magento 2 compatible and will change the URL for one product then saves it. ...
0
votes
1answer
22 views

Why do I need the SID in my URL?

Since I installed my store I see the SID code in my URLs but I don't know why it's there, I found an option in my admin panel to disable it. Could you explain to me why do I need it?
0
votes
1answer
40 views

URL Query parameters are being lost

I am having a strange issue with my product filter (layered navigation) not working, I have narrowed this down to the URL paramaters being lost because of a 301 redirect. If I go to the URL... http://...
0
votes
1answer
14 views

Why my admin route is showing 404 and URLs include server.php?

I already checked everything, my remote server is working properly by my local showed up this issue, as you can see in this image below. I don't know if it's related to my local environment using ...
0
votes
2answers
25 views

URL is appending if I click more than once

We have created megamenu for our site. But the issue we are facing is that the url is appending if click more than once instead of showing corresponding page. How to resolve this issue? Below is the ...
1
vote
0answers
20 views

Product url_keys nulled after some time

Setup: Magento 2.2.x, OpenSouce (Magento Community Edition) Products were imported from Magento 1, url_path attributes were cleared all url_key values are unique (both products & categories) ...
0
votes
1answer
24 views

Magenot 1.9.x : The URL “http://magedk.local/” is not accessible

I can't install magento 1 because I have error: "The URL "http://magedk.local/" is not accessible." "Unable to read response, or response is empty" Magento installing on docker.
0
votes
0answers
16 views

Duplicate URLs ending with #!

Does anyone know why a site can contain duplicate URLs ending with hashtags & exclamation mark e.g. https://www.vaibhavjewellers.com/gold-jewellery/kids/maangtikka.html#! https://www....
0
votes
0answers
23 views

Magento 2 Camel case URLs

I have a client that I'm migrating a client from Magento 1.9 to 2.3 where they've used camel case in the URLs. Obviously M2 doesn't support came case and enforces lower case. Any way to support camel ...
0
votes
0answers
16 views

URL rewrite programatically

I need to rewrite all my category urls. they are more than 600X so it is not possible to set them one by one. how can i set them automatically?
4
votes
1answer
49 views

Product to category redirect

Is there a way to link/redirect a product page to a category? Scenario: I have 70-80 new products that all go into the same category. I can either chose to put one of the products in the "News" ...
0
votes
0answers
19 views

Website URL's issue

An issue has appeared suddenly with URL's on my site. I currently have the following configuration. AU Store (https://example.com.au/au/) US Store (https://example.com.au/us/) However, if a user ...
0
votes
0answers
15 views

Magento 2 URL - Category Hierarchy

Currently working on a site with several categories and thousands of products. We want to structure the categories into parent/sub or parent/sub/sub if necessary. I've looked at url rewrites inside ...
0
votes
0answers
14 views

Switch Store View on Login

I have created a custom module that observes the Login button so that when it is clicked I can switch the store view to a different store view. So far, this appears to be mostly working. However, upon ...
3
votes
0answers
25 views

Error: The same url in all products Magento 1.9

I've tried to show the related products under the images of products. Until here all is ok, but the URL of the products is showing always the same of the first related product How can I solve this? ...
2
votes
2answers
49 views

Magento2 : How To Get Parameters from URL In Controller

http://mystagesite.com/magento232/custom/module/check/?params=<%3Fxml+version%3D"1.0"+encoding%3D"UTF-8"+standalone%3D"yes"%3F>6<%2FRESPONSECODE>Invalid+Session+Token%3A+Session+has+Timed+Out<...
1
vote
1answer
20 views

Append extra param for my Magento 2 entire site dynamically

my requirement is like one magento site with having some query params. By starting website with www.abc.com/?id=1-2-3 like this i want carry this query param my entire site can any one how can achieve ...
0
votes
0answers
16 views

Magento2.1 category URL structure

Want to set my category pages URL like this: https://domain.com/categories/{category name} Also is it possible to set https://domain.com/category/{category name} for main categories and https://...
0
votes
0answers
26 views

Magento 2: How to create separate url for each items added by admin?

I have created a module which is used to add some user information by admin like name, image, short_description, description etc. I displayed short_description on listing page and added a link to ...
3
votes
0answers
48 views

Magento 2.3 admin is redirecting to this URl domain/admin/admin/denid/key/**** after admin login

I anonymously added some ACL permissions in Magento 2 and saved. I know that I have configured wrongly in the process of knowing, how it works since then I am unable to access my Magento 2 admin, I am ...
-1
votes
1answer
21 views

magento 1 how can get images URL by images name

How can I get an image URL from the image name? Please provide me steps and also let me where need to keep code(folder or file location) to get URL.
0
votes
0answers
30 views

Ur Rewrite interesting problem Magento 2

I need to create URL rewrite for /vendor_module/product/test/id/666. In rewrite, I want to change id/666 to productTitle.html. But when I created it I faced an interesting problem: Magento sees "...
0
votes
1answer
15 views

CMS page with referer URL parameter

I have a customised CMS page which includes a login form, I have code that lets me grab the referrer url parameter which works fine when testing in pure php. However when putting this live I ...
0
votes
0answers
28 views

Difference between URL_TYPE_LINK and URL_TYPE_WEB

During an extended debugging session I tracked down an error with a third party module down to the use of URL_TYPE_LINK and URL_TYPE_WEB passed to the following function: Store->getBaseUrl() When ...
0
votes
2answers
21 views

How to Setup Multi Website With Visible Language Codes in Magento2?

I want to setup the below url structure in our website. http://www.domain.com/en -> website: domain / storeview: domain_en http://www.domain.com/de -> website: domain / storeview: domain_de http://...
0
votes
2answers
23 views

how to get rest URL in Magento2

I need to get a link of this kindhttp://localhost/Magento2/rest I have a code by which I get base_url: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $storeManager = $...
0
votes
0answers
50 views

Magento admin URL failure

I successfully changed my store domain name and I was able to access my admin URL. Now when I changed my admin URL and getting 404 error. I followed these steps: STORES → Configuration-Admin-ADVANCED-...
0
votes
1answer
71 views

Magento 2.3.2 - Switch Website (store) without going to base URL

I'm using the following code to switch websites. app/design/frontend/[Vendor]/{Child_theme}/Magento_Store/templates/switch/languages.phtml <?php /** @var \Magento\Store\Block\Switcher $block */ ...
0
votes
1answer
14 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
1answer
51 views

Link CDN url to my product saved in magento 2

I want to Link CDN URL to my Product in magento. So basically all the Images for the product will be fetched using the Image URL Rather than saving it on Magento Website (Project) Is it possible to ...
0
votes
1answer
31 views

Magento 2: Get root path in url, when the domain name doesn't match with magento folder name

I have domain name for my magento 2 site something like https://abcxyz.com/index.php, and my project folder name is something like shop.xyz.com (folder name). Now I have added an external file test....
0
votes
0answers
21 views

URL key for specified store already exists for category export via akeneo?

when i export categories via akeneo to magento 2. URL key for specified store already exists for categories in magento 2 export via akeneo pim any one how to fix this issue magento ver 2.2....
1
vote
1answer
94 views

Magento 2 getUrl is generating a different security key

I am trying to generate the following url, in the adminhtml area: $this->url->getUrl('adminhtml/system_config/edit', ['section' => 'mysection']); // where $this->url is an instance of \...
1
vote
0answers
23 views

Modifying the custom controller url to SEO friendly in Magento 2

I have created my custom module for loading the custom template. Here is the code of Vendor/Module/etc/frontend/routes.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
2
votes
1answer
38 views

Function getUrl of magento 2 doesn't work correct

In template I try to get url link but it doesn't work correct. I try to use this code: $block->getUrl('aloha/product/view/id/') But it always return http://abcs.com/aloha/product/view/, Is this a ...
0
votes
1answer
39 views

Magento 2 Url Key of Configurable Simple Product are same

I had migrated my store to the latest version, now I am facing an issue: Some Configurable Simple Product have same Url key, Below are the Simple Products of a Configurable Product: Is there any ...
0
votes
0answers
10 views

How do you setup different URL's for websites?

I would like to setup three websites as follows: Website 1 (www.magentostore.com/) Website 2 (www.magentostore.com/au/) Website 3 (www.magentostore.com/uk/) My question is, is this ...
2
votes
2answers
41 views

Observer to fire on customer login Page Url (baseUrl.“customer/account/login”) magento 2

I want to fire observer on customer login Page url(baseUrl."customer/account/login") magento 2. I tried customer_login event but it's firing after customer login. etc/events.xml <?xml version="...
2
votes
1answer
43 views

How get Image Url by product_id or other way

I am rendering sales_items rows in frontend Screenshot is: Can anyone please help me to find how get image path here from product id or any other solution. and set path in src tag ? My .phtml file ...
0
votes
1answer
82 views

Addresses Delete not working in address book Magento 2.3

Add additional addresses to address book in magento 2.3 then Click on ' Delete Address' link in address book it redirect to 404 page and invalid url shows.
0
votes
0answers
26 views

Magento 2 how to insert a link to the product item title

I need to insert a dynamic url to the brand search result inside the title of the product page. I.E. this is my product title: TOMMY JEANS Felpa Uomo in misto cotone giallo con logo "tommy ...
0
votes
0answers
23 views

Magento2.1 URL structure

I want to show my products by below URL structure in Magento2.1: localhost/products/ID/product title What should I do?
1
vote
3answers
31 views

Magento 2 add category url in all products, frontend

I want to display all product url in frontend with category name inside, I had checked all the configuration, but didn't find anything. Now I think I have to do it by coding, please guide me little ...
0
votes
1answer
26 views

UrlRewite one website to another?

Is it possible in magento to redirect existing site one page to another website? Like. http://magento-website/demo to http://magento-website-2/demo Without using htaccess and php header function. ...
0
votes
3answers
533 views

How to change my url from www.xxx.com/Magento to www.xxx.com

I am running Magento 2.2.7 and my current URL for my store is https://shop.xyz.ca/Magneto and I would like to change it to be https://shop.xyz.ca/ I am set up on Windows Server and using Xampp 3.2.2 ...
0
votes
1answer
13 views

How to remove head category but keep subcategory in url magento

Currently my url structure is as following: parameters: example.com/head-category/sub-category/product-name actual url: example.com/gear/balls/superball-0192 I would like to change this to: ...
2
votes
1answer
88 views

How to update the mini-cart proceed to checkout according to customer login in magento 2?

I Want to check the user login status in mini cart and redirect the customer to the login page when click the proceed to checkout button in mini-cart. How to edit the minicart.js file to achieve this?...
0
votes
0answers
17 views

Url redirect not true

i have two url. 1 : abc.com 2 : xyz.com I want when click abc.com, it load abc.com and when click xyz.com, it load xyz.com When i click xyz.com, it load abc.com now. Please help me!
0
votes
1answer
20 views

Magento 2: Product URL Suffix problem with search (2.3.1)

We removed the values for url suffix from the configuration (removed .html). After rebuilding cache and reindexing from CLI the store works correct but the search function for some reason doesn't. The ...
0
votes
0answers
32 views

Magento 2 referrer URL not working and also product not adding to cart

https://hofindia.com/hof/customer/account/login/referer/aHR0cHM6Ly9ob2ZpbmRpYS5jb20vaG9mLw%2C%2C/ This Url Not working and https://hofindia.com/hof/customer/account/login/ It's Working Also, ...