Closed bnomei closed 6 years ago
You should be able to do go('/')
.
ok that works. but another weird issue appeared. maybe its related to my MAMP Pro but removing the go('/')
statement does not seem to stick. even restarting apache and chrome did not help.
I am not sure if I understand your problem completely. What do you mean with "it does not stick"?
1) i added go('/')
to my template. refreshed browser. got redirected to /
. OK.
2) removed/uncommented go('/')
from my template. still got redirected to /
. Not OK.
3) ran composer on plugin (since template is in plugin). restarted MAMP app and apache service and chrome. Still getting redirected to /
.
edited: well it's just happening in chrome. clearing cache helped. firefox dev seems fine.
when redirecting to home using
go($site->url());
orgo($page->homepage());
the new browser URL ishttp://mypage.com/home
. what i expected washttp://mypage.com
.