Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [redirect]

Questions about HTTP redirects (status codes 301, 302, 303): How to set them up, why they are happening etc. For the catalog URL rewrite management in the admin panel, use the "url-rewrite" tag.

1
vote
0answers
14 views

Magento 2.1.8 dev site catalog search and products listing redirecting to live site

I have setup my magento 2.1.8 EE live site on staging for development. The homepage, admin and cms pages are working fine. But my prduct pages are redirecting to live site and catalog search also ...
0
votes
0answers
14 views

User redirected to frontend front page when saving in admin or continuing to payment service

We have Magento 1.9.3.8 installed and these two things seem to happen randomly during any day: In admin saving product data redirects to frontend's front page. In front end when user is making an ...
2
votes
1answer
44 views

Redirect issue after add to cart in magento2 custom controller

I am calling my custom controller for adding the product through the form action. Below is my controller file. <?php namespace {Vendor}\{Module}\Controller\Product; use Magento\...
0
votes
0answers
21 views

How command pool works? and How can we redirect to payment gateway? Magento 2

I'm integrating a payment gateway using gateway command pool. This is di.xml <virtualType name="AuthorizeCommand" type="Magento\Payment\Gateway\Command\GatewayCommand"> <arguments> ...
1
vote
0answers
17 views

Redirect home page with example.com// in magento 2

Hello I just Moved My Website and I am getting Error in home page page is not redirect properly Home page is open with 2 slash www.example.com//
3
votes
1answer
19 views

Referrer URL in modal login form

I currently have a login form which opens when a customer clicks a link in the header (instead of going off to /customer/login). Apart from a few field ID's, it's pretty much unchanged from customer/...
1
vote
0answers
22 views

Magento 2 - how do i redirect “mydomain/pub” and “mydomain/pub/media” path to homepage?

I'm trying to redirect "mydomain.com/pub" and "www.mydomain.com/pub/media" to homepage (mydomain.com). Currently, "mydomain.com/pub" path shows the homepage with no css and js loaded, and "www....
1
vote
1answer
24 views

Product gets wrong url on product page

The product im having problems with has the url: 1-troy-ounce-silver-maple-leaf-6 in the backend the product has the URL key: 1-troy-ounce-palladium-maple-leaf The product needs to have the URL key ...
0
votes
0answers
20 views

How to restrict navigating to other page from a customer magento page

I am working on a module that implements two factor authentication. I have created an observer to the event customer_login , so just after when the customer has logged in, they are directed to a ...
1
vote
0answers
22 views

Failed Payment Redirect in Magento 2

When a customer has an order canceled due to their credit card being declined it seems all extensions redirect customers back to the cart page and not the actual payment page in the checkout. Is this ...
0
votes
0answers
18 views

Best Seller Block (links not working) - Magento 2.2

Here i need to solve some issue where, When i click on the product image (BLUE CIRCLE), in the Best seller block, we are redirected towards the Home Page Similarly, when the name of the product is ...
0
votes
1answer
28 views

Rewrite rule for media images

we need to set rewrite rule for some images in Magento 2.2.5 using .htaccess rules or nginx conf Example 1 Request Path: https://www.example.com//media/catalog/product/cache/1/thumbnail/543x403/...
0
votes
1answer
35 views

How to redirect to shop after logged in user in Magento 2

public function execute() { if ($this->session->isLoggedIn() || !$this->formKeyValidator->validate($this->getRequest())) { /** @var \Magento\Framework\Controller\Result\...
1
vote
1answer
22 views

Magento 2: Can I response with a redirect on REST API?

I have an API endpoint that expects a GET request. On some scenarios, I want to be able to perform a redirect instead of responding with a result. e.g., If you'll open the API endpoint URL in a ...
0
votes
1answer
24 views

How to break a event flow form an Observer and redirect to the same page in Magento 2?

How can I break a flow when some condition is true? Let's say the customer is writing a review for the product https://url/review/product/post/id/2/ and when the user presses the save butto some ...
0
votes
3answers
39 views

Magento 1 Redirect only works once, works again after refreshing cache

I want to add a simple redirect if a customer is not logged in when trying to access one of my categories. Now, I have created a test.phtml file and added it in my theme page/test.phtml with ...
0
votes
1answer
15 views

Custom customer logged in redirect in front instead account

I'm making a Facebook connect module. It add a button "facebook connect" in the logged in form and when the user log with it, it send the form with a token added in the fields. To do that i create a ...
0
votes
1answer
30 views

When hit the home page url, it shows contact us page as home page

I am facing a very unusual scenario for my web site. (https://zitomer.com) When we try to access homepage https://zitomer.com it displays contact us page as a homepage. What will be the issue? I am ...
0
votes
1answer
32 views

Who can help, why the redirect does't work when the product is added to the cart?

Redirecttohome.php namespace namespace\modul\Observer; use Magento\Framework\Event\Observer; class RedirectToHome implements \Magento\Framework\Event\ObserverInterface { protected $...
0
votes
0answers
11 views

How to redirect the customer to the same store he has last used when he click on a button in email?

I have a button in my email called "Shop". once the email is sent to the customer if he clicks on the "shop" button it will redirect to the same store from where he has last used. How to do this.
0
votes
0answers
10 views

Magento adding conditions on catalog price rules causes ERR_TOO_MANY_REDIRECTS

I am using Magento 2.3 installed via CPanel from hosting I am trying to create a catalog price rule, when I click on condition and selects Catalog it takes time to load then displays an error I ...
0
votes
1answer
60 views

Controller redirect on jquery post request from phtml template

I want to redirect user on button click from .phtml template file, however, really struggle to find a working solution. Here is my controller with path of /batchorder/index/addtocart: public ...
0
votes
1answer
37 views

Magento 2 controller redirect on button click in phtml file

I want to redirect customer using controller when button is clicked in one of my phtml files. So far I got, controller: public function execute(){ return $this->addToCart(); } public ...
0
votes
1answer
243 views

Magento 2 redirect to external URL from controller

I want to redirect to a external URL in my controller but not in the execute() function. This code works fine and the result is a redirect to google: public function execute() { $resultRedirect =...
0
votes
0answers
12 views

Controller Redirect Returning HTML and not actually redirecting

I have made a simple test controller, that should just redirect the user to the checkout/cart page when it is hit. After reading a number of different tutorials online and viewing countless Magento ...
0
votes
0answers
20 views

Show Messages from Message Manger after Redirect

I am currently using the message manager to display a series of messages from my controller. $this->_messageManager->addSuccessMessage(__("All requested products have been added to the cart."));...
1
vote
0answers
16 views

admin url redirects to customer view page in magento2.3

I am a beginner to magento. I am currently using magento version 2.3 and http://localhost/myproject/admin url redirects to customer view page instead of appearance of admin login form. Thank you in ...
1
vote
0answers
20 views

External URL post redirect without intermediate page (white page) in Magento 1.9.x

Is there any possibility from the shop-system to perform a post redirection while clicking on the 'Place Order' button? We have tried posting the form data using the function getOrderPlaceRedirectUrl ...
0
votes
1answer
22 views

Magento 2.2.2 : Redirect not working from plugin

di.xml <type name="Magento\Framework\AppInterface"> <plugin sortOrder="1" name="noroute_redirect" type="Namespace\ModuleName\Plugin\AppInterfacePlugin"/> </type> ...
0
votes
1answer
28 views

skip function execution using before plugin

I'm overriding the controller Magento\User\Controller\Adminhtml\User\Validate::execute() using before-plugin so I can perform some checks before magento validate using this function. If certain ...
0
votes
0answers
26 views

Magento 2 redirect to localhost

Magento 2 redirect to localhost I have install magento 2 on ubuntu in virtual box. and I have forward the port from host machine to virtual machine. but when I try to access magento it redirect to ...
0
votes
1answer
20 views

Redirect from around plugin in Magento 2

How to redirect from around plugin to another page with an error ?
0
votes
0answers
118 views

Magento2 : Why I'm redirect to Empty Cart After Checkout?

I am running Magento 2.2.6. I noticed my analytics data seemed off so I went in and checked and I am only receiving about 50% of my transactions. I can see the transaction id so I have compared the ...
0
votes
1answer
47 views

Magmi Keeps Asking for Login

I use Magmi with Magento 1.9 for a few years now. All of a sudden, no matter what I do, press “run” or “save profile”, Magmi sends me to the login page. Help anyone? Thanks
1
vote
1answer
37 views

How to redirect to particular stores when the site opens

My website has 2 stores there are two different store codes for that the first is us and the second is ms when I enter mysite.com then it redirects to mysite.com/us but I want to change it to ...
0
votes
1answer
128 views

Magento 2 - Load Balancer - Health Check Failing - 302 redirect

I am having an issue with my load balancer health checks. It is attempting to access the server hosting the Magento 2 site. When I curl the IP address of the machine I get the following Response ...
0
votes
2answers
38 views

Redirect from Controller

In my controller BVZ\Customer\Controller\Index I'm doing a redirect using return $this->_redirect('customer/index/firstAccess'); When the code execute, the request are made (see the print below) ...
0
votes
1answer
34 views

Magento 1.9 create log for no-route

Is there anyway I can force Magento to create a log file that contains the offending script path that is causing a redirect to no-route?
0
votes
1answer
62 views

Magento 2.1 redirects in Observer after payment

I'm creating a payment method gateway, that requires after place order in the frontend, redirects to the custom controller that I've created. I created an observer sales_order_payment_place_end to ...
0
votes
0answers
82 views

Customer redirect issue with login post plugin magento2

I have used two plugins to use the referral url's for customer login page. here is the code of my etc/di.xml <type name="Magento\Customer\Controller\Account\LoginPost"> <plugin ...
4
votes
3answers
592 views

What type of redirect is this?

While i'm studying a line of code in magento vendor file I found this code $resultRedirect->setPath('*/*/'); What does this '*/*/' means and where does this redirects. I hope will get ...
1
vote
1answer
182 views

url rewrite with wildcard possible with magento 2.x default set-up?

I want to use wildcards for url redirects in Magento 2.x with basic Magento set-up. Whenever I add it, either via Import upload or manually added they do not work. Does anyone know if adding wildcards ...
6
votes
2answers
184 views

Update: Magento 1 checkout account create redirect, SUPEE-10570v2 and Magento 1.9.3.9

We currently have a strange problem on our Magento 1.9.3.9 shop. When someone fills in the password fields in the checkout, to create an account. In that case when clicking the place order button on ...
0
votes
1answer
18 views

URL re-written with a -1

https://theidleman.com/brands/carhartt-1.html has been generated in addition to our old https://theidleman.com/brands/carhartt.html URL - how can I delete the '-1' and redirect it if the '-1' does not ...
0
votes
1answer
33 views

Magento 1.9 - Observer Event redirection issue after placing order

This is my xml : <global> <events> <sales_order_place_after> <observers> <test_magewidget_model_observer> <...
0
votes
1answer
62 views

No Forward Slash on URL redirects back to Homepage

We've got a strange issue with a Magento 1.9 install where any page that you try and navigate to that doesn't have a slash on the end of the URL is automatically redirect back to the homepage. Our ...
0
votes
3answers
101 views

Customer redirect issue with plugin method magento2

I have used below code to write plugin method for loginPost controller. this is the code of etc/di.xml <type name="Magento\Customer\Controller\Account\LoginPost"> <plugin name="...
0
votes
2answers
44 views

Magento keeps redirecting to main domain

We have two domains, one for the german shop and one for the shop in switzerland. The urls are like: www.mycompany.de and www.mycompany.ch But if I open www.mycompany.ch then I get redirected to ...
0
votes
0answers
49 views

Magento 2: Redirect to backend customer list from frontend

I'm trying to create a menu to redirect to the client list in the backend. The menu is: <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="...
1
vote
1answer
138 views

Magento 2.2 - How to redirect url with store code to url without store code?

The site is been indexed on Google with Store Code for each store view (it/en/gb/au) now the store codes are been removed from url, so all the links end up in a 404 error. How can I set an automatic ...