How to get shop base url
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
How to get shop base url
I have setup Aimeos for multiple shops and multiple languages.
There is a main page (welcome.blade) where I have populated a list of shops in a table.
On row click the shop page opens in a new tab with shop url as https://myshop.com/shopcode/en/shop
My problem is when I select a product the product page is opened. When I click on Shop logo at top left it takes me back to the main page instead of Shops main page. This is because my app.blade has the shop logo displayed something like this :
<a class="navbar-brand" href="/">
<img src="{{ URL::to('/').'/images/'.Route::current()->parameter('site','default').'.jpg' }}" height="40" title="Logo">
</a>
What should I place in href to go back to the shop main page. I tried {{Request::url()}} but this keeps me on the same product page instead of going back to shop main page; because on each page refresh, the url is also set to current.
There is a main page (welcome.blade) where I have populated a list of shops in a table.
On row click the shop page opens in a new tab with shop url as https://myshop.com/shopcode/en/shop
My problem is when I select a product the product page is opened. When I click on Shop logo at top left it takes me back to the main page instead of Shops main page. This is because my app.blade has the shop logo displayed something like this :
<a class="navbar-brand" href="/">
<img src="{{ URL::to('/').'/images/'.Route::current()->parameter('site','default').'.jpg' }}" height="40" title="Logo">
</a>
What should I place in href to go back to the shop main page. I tried {{Request::url()}} but this keeps me on the same product page instead of going back to shop main page; because on each page refresh, the url is also set to current.
Re: How to get shop base url
Figured it out. I used this to solve the issue.
{{URL::to('/').'/'.Route::current()->parameter('site','default').'/'.Route::current()->parameter('locale','en').'/shop'}}
{{URL::to('/').'/'.Route::current()->parameter('site','default').'/'.Route::current()->parameter('locale','en').'/shop'}}