1

I am getting the issue with the redirection with multi-website. I am on multiwebsite and I am trying to redirect the URL from admin using the above code return $this->_redirect($this->_redirect->getRefererUrl());

_isUrlInternal function is creating the issue with that. As in my code, store is changed and due to that _isUrlInternal is always redirecting me to second website home page due to _isUrlInternal function condition.

Can't we modify the _isUrlInternal function definition so that it can understand the admin URL as well?

1 Answer 1

0

Finally, i found a solution for the same by setting up the store manager to admin. The code that I used before redirection was : $this->_storeModelStoreManagerInterface->setCurrentStore(0);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.