Open ioan-ghisoi-cko opened 4 years ago
Hello! I got this to work using a really dirty hack. It uses also suggestions from Issue #3. Enter the commands in your Terminal.
find . -name 'StoreBaseUrl.php'
. This finds the path to the file we need to modify.vim ./vendor/shkoliar/magento-ngrok/Plugin/Model/StoreBaseUrl.php
and Enter.:51
(with the colon ':') in vim.i
key.//
) before anything on that line.return $protocol . $ngrokDomain . DIRECTORY_SEPARATOR . 'magento2' . DIRECTORY_SEPARATOR;
NOTE: Replace "magento2" with your Magento root's path. @ioan-ghisoi-cko's Magento is installed in "localhost/magento2" so I am assuming "magento2" is where Magento is installed.
:wq
, then Enter again to save and quit VIM.NO
for the "Auto-redirect to Base URL" option.
:q
(with the colon symbol at the start) and hit enter. If that doesn't work, you can also use :q!
. Hope this helps!
I have Magento installed on localhost/magento2, and when I use this with ngrok it sets the base URL without /magento2 and it breaks the links