Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
bnomei opened this issue Apr 13, 2018 · 4 comments
Closed

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

bnomei opened this issue Apr 13, 2018 · 4 comments

Comments

@bnomei
Copy link

bnomei commented Apr 13, 2018

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
Copy link
Member

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

@bnomei
Copy link
Author

bnomei commented Apr 13, 2018

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
Copy link
Member

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

@bnomei
Copy link
Author

bnomei commented Apr 13, 2018

  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.

@bnomei bnomei closed this as completed Apr 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants