getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.32k stars 168 forks source link

[CMS] Redirecting to homepage appends /home to URL #416

Closed bnomei closed 6 years ago

bnomei commented 6 years ago

when redirecting to home using go($site->url()); or go($page->homepage()); the new browser URL is http://mypage.com/home. what i expected was http://mypage.com.

distantnative commented 6 years ago

You should be able to do go('/').

bnomei commented 6 years ago

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.

distantnative commented 6 years ago

I am not sure if I understand your problem completely. What do you mean with "it does not stick"?

bnomei commented 6 years ago

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.