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

[Bug] Renaming Globals #9

Closed
darylknight opened this issue Mar 23, 2015 · 2 comments
Closed

[Bug] Renaming Globals #9

darylknight opened this issue Mar 23, 2015 · 2 comments

Comments

@darylknight
Copy link

Discovered an issue yesterday which I think needs fixing in CPNav rather than somewhere else. I created a global set called "Social Networks" to contain Facebook and Twitter links for the site. Handle name was socialNetworks.

Later, I renamed that global set handle to 'social'. In Craft, when you visit the Globals panel, the URL you get sent to is automatically set to the handle of the first global field set in use i.e. http://craft.dev/admin/globals/camelCase.

When I renamed the global field set, CPNav still tried to send me to http://store.craft.dev/castle/globals/socialNetworks, but it should be sending me to http://store.craft.dev/castle/globals/social. Uninstalling and reinstalling the plugin fixed the error. Is there a way to update this dynamically?

@engram-design
Copy link
Member

Ah yes, thats a good point. Globals is the only menu item that does this special redirect-to-first-child thing. In fact, if you try to visit http://store.craft.dev/castle/globals, it will throw a 404. It would be a whole lot easier if this was the case.

Anyway, I've fixed this in the latest commit.

@darylknight
Copy link
Author

Perfect! Fixed, tested.

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