Questions tagged [url]

Denotes question about URL issues and custom URLs.

Filter by
Sorted by
Tagged with
15
votes
9answers
22k views

How to change magento2 admin url?

Once the installation is completed, is there a posibility to change admin url? If yes how can I do that?
4
votes
3answers
7k views

Where is the admin path located in database?

I want to find out where does Magento2 keeps it's admin path in the database? Any suggestions will be appreciated.
0
votes
0answers
23 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 ...
2
votes
1answer
24 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 ...
1
vote
1answer
121 views

Products just redirect to search results page

All of my products are now redirecting to catalog search. i.e. /bonfire-firma-3-in-1-stretch-mens-snowboard-jacket-2019.html goes to /catalogsearch/result/?q=bonfire-firma-3-in-1-stretch-mens-...
0
votes
1answer
1k views

How to remove trailing slash from Magento 2 url

I have installed ssl in my Magento 2 store and configured base url to the https version. But when accessing http version, Magento redirecting url with appending trailing slash. For example: My ...
0
votes
2answers
61 views

can't get admin url - Magento 2

I use the below code to get admin url of given frontName/controllerName/Action protected $storeManagerInterface; public function __construct(\Magento\Store\Model\StoreManagerInterface $...
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
33 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="...
1
vote
1answer
629 views

Use secure url for static files field into database Magento 2?

I'm using magento 2, and I'm trying to find the field of "use secure url for static files" (or similar label). I can find web/unsecure/base_url into mgxo_core_config_data , but not that one, I need to ...
2
votes
2answers
84 views

Issue in create controller

I am trying to create a custom controller in magento 2.1. I have created routes.xml and namespace as routes.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
55
votes
13answers
87k views

How to get Magento 2 base URL?

In Magento 1 Mage::getBaseUrl();, but in Magento 2 I have to pass responsible class object type in constructor. I don’t have the idea which class I have to pass?
2
votes
2answers
6k views

How to get RefererUrl in magento 2 observer?

How to get RefererUrl (source page url) in Observer file? Actually by using this; $this->_redirect->getRefererUrl(); I am getting Referer Url in magento 2 controller file.But in Observer file ...
2
votes
1answer
34 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 ...
8
votes
6answers
28k views

Magento2 - Get category URL by ID

I'm trying to get the URL key of any given category with the ID. I have this; $categoryId = 3; $_objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $object_manager = $_objectManager-...
0
votes
1answer
24 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.
3
votes
0answers
423 views

Magento2 : Create Dynamic URL by controller

I need the url structure like this : From this url :- http://localhost/magento27/review/product/view/id/936/ To this url :- http://localhost/magento27/women/review/love-this-product/936 women :- ...
6
votes
3answers
13k views

Magento 2 get custom module image url from backend

I used <?php echo $this->getViewFileUrl('Vendor_Module::images/demo.jpg'); ?> <?php echo $block->getViewFileUrl('Vendor_Module::images/demo.jpg'); ?> But it's working only ...
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
1answer
45 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 ...
7
votes
1answer
1k views

Magento2: Remove Store Code URL only for default store

I am developing a Magento 2 store with two store views, one for each language(English and Italian). I turned on the "Add Store Code to Urls" option from backend, so my URLs looks like: http://mystore....
0
votes
0answers
22 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?
3
votes
6answers
11k views

Magento 2 is generating the product url with catalog/product/view/id instead of product name

We are having a strange problem in our Magento 2 webshop. Our webshop has different ways of generating the product url. So some of our products just show the product url as it should be /name-of-the-...
0
votes
2answers
760 views

Magento 1 get product or category id by url string

I have url string. I need to detect if url belongs to product or category and get product or category id. I tried this, but it won't work: $vPath = 'http://dev.magento186.com/default/example/...
1
vote
3answers
29 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 ...
1
vote
2answers
3k views

Magento2 : Get Product Url for Store

I'm writing a custom indexer and I need to retrieve the product URL for different stores. $product->setStoreId(2)->getProductUrl(); still returns the URL with the admin store (backoffice) in ...
0
votes
1answer
23 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. ...
2
votes
1answer
985 views

Magento 2: “Use Categories Path for Product URLs” configuration does not working correctly

I have a store with few categories. I want to have only one url for each product - domain.com/product_name.html. I don't want to have products URLs with the category path in them. I set “Use ...
0
votes
3answers
56 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 ...
26
votes
13answers
65k views

Remove /index.php from the Magento URL gives 404 error

I am using Magento ver. 1.7.0.2. Here is the link of my website: http://dev.blokeundees.com.au/ I have to remove /index.php from the URL so I have changed into the .htaccess file and backend (secure,...
2
votes
1answer
3k views

Magento 2-How to link image to category page through cms page?

I have a static page of shop. On this page there are different images. I want to link these images to the specific categories types. For example i have an image of men's clothes. Now i have also a ...
2
votes
1answer
67 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 ...
1
vote
2answers
587 views

Add to cart url returns invalid url

My add to cart url returns this. When i click it the products doesn't get added because it's invalid. This happens in the homepage. http://localhost/mage/index.php/checkout/cart/add/uenc/...
0
votes
1answer
10 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
40 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?...
2
votes
2answers
799 views

Remove default store code from URL, only?

mage 2.1.7 "use Store code in URL" set to YES. Have 3 stores, one for our default/original store at "/" with code "france" and one for our south korea and north korea stores. The default store is ...
0
votes
1answer
15 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
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!
2
votes
1answer
173 views

Braintree and Kount (GENE version 2.2.3) installation on Magento ver. 1.14.0.1

I'm trying to configure ENS via a Braintree, Kount, Magento workflow, and are experiencing errors that i'm unable to diagnose. Here's what I'm doing: Order # 100096149 | Jan 8, 2018 3:51:07 PM (...
1
vote
1answer
995 views

How to remove cookie data from static content request?

I have created a separate domain to serve static content. Also modified URL values in System->Configuration->General->Web. When I inspect any static content request with firebug in firefox browser, I ...
0
votes
0answers
27 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
23 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 ...
2
votes
1answer
982 views

Add noindex to single category in Magento 1.9

I want to modify this line for only one category: <meta name="robots" content="INDEX,FOLLOW" /> I want to add noindex like this: <meta name="robots" content="NOINDEX,FOLLOW" /> I tried ...
0
votes
1answer
25 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 ...
1
vote
2answers
272 views

Magento 2: Category URL for frontend

I have created a root category with name colors in Magento 2. I am trying to access this category by URL http://domain.com/category/colors.html in front end. But its not working for me. What will the ...
0
votes
1answer
920 views

how to find Payment Response URL, in Magento account?

We are configuring, a payment gateway from Worldpay to Magento our website. it says, we need to copy the value of Payment Response URL from Magento to Worldpay, Payment Response URL. How can i find ...
3
votes
1answer
30 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 ...
2
votes
0answers
228 views

Magento 2 : How to remove the default Store langauge code from the URL

I have integrated multi language stores one for "EN" and second for "DE" After changed options "Add Store Codes to URL"=>"YES" (Magento2:: System -> Configuration -> Web -> Add Store Codes to URL=>...
1
vote
1answer
21 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
2answers
1k views

Magento 2 After updating the admin URL getting 404 Not found page

I have changed the admin URL using the below command line: php bin/magento setup:config:set --backend-frontname="admin_path" I have followed the below answer for change the admin URL: How to change ...