Questions tagged [url]

Denotes question about URL issues and custom URLs.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 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
12 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 ...
2
votes
0answers
20 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
42 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<...
0
votes
0answers
18 views

Magento 2 Multi storeviews in index.php

I have a Magento 2 site that configured to have one website with multiple store views. A store view is related to a country. The URL structure for each store view I would like to have is like this, ...
1
vote
1answer
17 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
25 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 ...
2
votes
0answers
43 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
20 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
29 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
24 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
18 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
49 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
43 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
13 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
30 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
25 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
18 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
50 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 \...
0
votes
0answers
12 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
35 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
30 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
35 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
42 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
51 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
30 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
24 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
134 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
54 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
18 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
30 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, ...
0
votes
1answer
33 views

Magento2: Issues with duplicate simple product

I have duplicate a simple product. The original simple product has: SKU: pld942 URL: pld942.html after duplicate: SKU: pld942-1 URL: pld942-1.html I set in duplicate product: enable weight qty ...
3
votes
1answer
43 views

Magento 2.3 How to create custom cms page url?

I have use Magento 2.3 Question: How to modify custom CMS page URL structure? For example: I want to this type of page link. http://mydomainxyz.com/parent-service/childpage At present we are only ...
0
votes
1answer
31 views

Magetno 2 base url 302 redirection

Hi I am trying to implement add extra key to base url example my base url:: abcd.com if user click on any key with base_url like below user entered url :: pawan.abcd.com site need set new theme if ...
1
vote
1answer
24 views

Single url for a product which is in different category in magento 2

I have a product black-jacket under the category men->tops when i click on men the url is like http://magento2/men/black-jacket.html and if i click on tops under the men then the url is http://...
0
votes
1answer
17 views

Headless Magento 2: Need custom URL instead of domain/products/:SKU

Fairly new to to magento. I am going for a headless approach, where I have created product listing pages with URLs as: www.domain.com/products/:productSKU I want to change this to something like: ...
1
vote
1answer
30 views

Magento 1.x Custom Module - get wrong Frontend Url

I have Mage 1.9 with my custom module installed. I have checked that the function Mage::getUrl('mymodule/api/users/1'); return wrong url with admin path. We also use a custom path for the admin ...
1
vote
2answers
92 views

How to pass store code to custom URL in magento 2

I would like to add store code to a custom URL in Magento 2.3.0 Actually, I want to pass store code to a custom URL in my custom module based on relevant store order. Let's take an example: public ...
2
votes
1answer
70 views

Magento 2 - Frontend Controller conditional based 404 page

I have custom frontend controller, I added the URL Rewrite for this controller I want to figure out the way, How I send requesting URL to 404 page based on some condition within the controller. I ...
0
votes
1answer
77 views

Magento 2.2 Ajax not working on second time in category page

My site was working fine, suddenly the ajax on category pages is not working on second time. On first time it works fine, whether it is pagination or layered navigation but on second time it doesn't ...
0
votes
0answers
20 views

Magento 1: How can I add or copy custom URL rewrites in bulk?

Is there a way I can bulk add approx 2,000 custom URL rewrites in Magento 1.9? Can I maybe insert directly into the core_url_rewrites table as an SQL command? I ask because we have just created a ...
1
vote
1answer
26 views

Category name on product url still working after “Use Categories Path for Product URLs” set to no

"Use Categories Path for Product URLs" set to no on admin panel But everytime I create a new product, it creates rewrite also for category/product url So both of them work: example.com/category/...