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

Saving routes from the cp #2410

Closed
freshface opened this issue Jun 12, 2019 · 5 comments

Comments

Projects
None yet
3 participants
@freshface
Copy link

commented Jun 12, 2019

Describe the bug
When saving the routes the yaml file is not correct and gives on error on the frontend.
It adds single quotes to the empty { }

After saving:

routes: '{  }'
redirect: '{  }'
vanity: '{  }'

As it should be:

routes: {  }
redirect: {  }
vanity: {  }

To Reproduce
Steps to reproduce the behavior:

  1. Save the routes from the CP

Additional context
Error:

Screenshot 2019-06-12 at 22 38 51

@robdekort

This comment has been minimized.

Copy link

commented Jun 27, 2019

Yes, this is a pretty annoying bug. You'll encounter it soon when you just start with Statamic and then you don't know what to do.

@jackmcdade

This comment has been minimized.

Copy link
Member

commented Jun 27, 2019

What version are you on? I can't recreate this in 2.11.12.

@jackmcdade

This comment has been minimized.

Copy link
Member

commented Jun 27, 2019

Ahh, very helpful, thank you. You need to load the form with a null routes field. Got it. 👍

@jackmcdade jackmcdade added bug and removed can't recreate labels Jun 27, 2019

@robdekort

This comment has been minimized.

Copy link

commented Jun 27, 2019

Cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.