Questions tagged [url]

Denotes question about URL issues and custom URLs.

Filter by
Sorted by
Tagged with
0 votes
1 answer
311 views

How to Change URL of Magento Site After Modifying Apache DocumentRoot?

My question is similar to How to do redirect the URL of site but I want to do the opposite. And there is a further challenge or two I cannot understand yet. Our setup is a Magento 2.3.3 store running ...
MountainX's user avatar
  • 240
2 votes
0 answers
103 views

how to customize the Magento 2, Core API URL

I want to customize the magento 2 core base API URL. For example, If my magento base url is http://local.m233ee.com/rest/v1/ . As per my project requirement, i have to change the base URL to ...
Dinesh Arumugam's user avatar
1 vote
2 answers
2k views

Magento 2.3: Forward to another URL without redirecting

I'm writing a module that will accept any Magento URL with /discount/COUPON_CODE appended to the end, set the code in a cookie for later use, and then forward to the URL minus the discount part. So, ...
Crankycyclops's user avatar
0 votes
1 answer
440 views

Difference in response from magento swagger and postman Magento 2

I have custom API in which I am retrieving customer balance as: use Magento\CustomerBalance\Model\BalanceFactory; ........................ ........................ $model = $this->balanceFactory-&...
Ajwad Syed's user avatar
  • 1,581
0 votes
0 answers
30 views

Magento 2.1 - Add prefix to category url

How to add a prefix for Magento 2.1 URL and show child without a parent? Example: Category level1: www.example.com/categories/fashion.html Example: Category level2: www.example.com/categories/men....
MGPM's user avatar
  • 741
1 vote
2 answers
1k views

Magento 2 - mage/url is not working in module. Uncaught ReferenceError: url is not defined

I am running the Magento 2 on the localhost server. http://127.0.0.1/magento3 here I've built a custom module for payment gateway. In custom JS I want to use the mage/url. I need to use ajax for the ...
Garry's user avatar
  • 145
1 vote
3 answers
173 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. ...
Zoltan veress's user avatar
0 votes
1 answer
1k 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?
Rafael Corrêa Gomes's user avatar
0 votes
2 answers
603 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://...
NetStorm's user avatar
  • 108
0 votes
1 answer
136 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 ...
Rafael Corrêa Gomes's user avatar
0 votes
2 answers
63 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 ...
MagentoDev's user avatar
1 vote
0 answers
26 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) ...
Jakub Winkler's user avatar
0 votes
1 answer
105 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.
Roman Romanchuk's user avatar
0 votes
0 answers
17 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?
MGPM's user avatar
  • 741
4 votes
1 answer
470 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" ...
PepsiMax's user avatar
0 votes
0 answers
21 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 ...
James's user avatar
  • 1
3 votes
0 answers
39 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? ...
Raphael Cordeiro's user avatar
2 votes
2 answers
6k 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<...
Sanjay Shiyal's user avatar
1 vote
1 answer
185 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 ...
Pawankumar's user avatar
3 votes
0 answers
50 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 ...
Raju Potharaju's user avatar
-1 votes
1 answer
180 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.
irshad's user avatar
  • 171
0 votes
1 answer
159 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 ...
Duncan Wardlaw's user avatar
0 votes
2 answers
38 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://...
Chandra Kumar's user avatar
0 votes
3 answers
1k 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 = $...
Anya Moroz's user avatar
0 votes
0 answers
74 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-...
Fast Source's user avatar
0 votes
1 answer
1k 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 */ ...
user2240778's user avatar
0 votes
1 answer
43 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 ...
Aboodred1's user avatar
  • 483
1 vote
1 answer
661 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 ...
Sairaj Gadekar's user avatar
0 votes
1 answer
448 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....
Dharma Teja's user avatar
2 votes
1 answer
1k 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 \...
Radu's user avatar
  • 460
1 vote
0 answers
278 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:...
Manjunath's user avatar
  • 177
2 votes
1 answer
202 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 ...
David Duong's user avatar
0 votes
1 answer
410 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 ...
temper's user avatar
  • 974
2 votes
2 answers
157 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="...
Hitesh Balpande's user avatar
2 votes
1 answer
260 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 ...
HaFiz Umer's user avatar
  • 1,600
0 votes
1 answer
598 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.
Shafeel Sha's user avatar
  • 1,377
0 votes
0 answers
28 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?
MGPM's user avatar
  • 741
1 vote
3 answers
129 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 ...
temper's user avatar
  • 974
0 votes
1 answer
45 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. ...
Sweety Masmiya's user avatar
0 votes
4 answers
3k 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 ...
Mur's user avatar
  • 1
0 votes
1 answer
19 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: ...
Floris van Vredendaal's user avatar
2 votes
2 answers
2k 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?...
Mujahidh's user avatar
  • 2,651
0 votes
0 answers
22 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!
TN98's user avatar
  • 923
0 votes
1 answer
142 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 ...
AntondeG's user avatar
0 votes
0 answers
172 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, ...
Pranav Makwana's user avatar
0 votes
1 answer
170 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 ...
Sylvester's user avatar
  • 2,156
3 votes
1 answer
936 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 ...
Chetan's user avatar
  • 139
0 votes
1 answer
361 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 ...
Pawankumar's user avatar
1 vote
1 answer
223 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://...
Nitin Mishra's user avatar
0 votes
1 answer
80 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: ...
Fokker's user avatar
  • 375

1 2
3
4 5
20