We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using the API route /api/pages/:id/children to create a page, the API returns an error even though the page is still created.
/api/pages/:id/children
Using localhost
{ "status": "error", "message": "http://localhost:8000/panel/pages/entries+example", "code": 302, "exception": "Kirby\\Panel\\Redirect", "key": null, "file": "/kirby/src/Panel/Panel.php", "line": 149, "details": [], "route": "pages/([a-zA-Z0-9\\.\\-_%= \\+\\@\\(\\)]+)/children" }
Using live site
{ "status": "error", "message": "https://archive.saman.design/panel/pages/entries+example", "code": 302, "key": null, "details": [] }
Expected behavior The API should respond with a success message, using a code between 200 and 299
302
Kirby Version Tried using both v4.4.0 and v4.3.1 (due to redirect errors mentioned in #6676).
v4.4.0
v4.3.1
Your system (please complete the following information)
The text was updated successfully, but these errors were encountered:
In addition to this, finding the API documentation on getkirby.com was a little bit of work.
I wanted to get to https://getkirby.com/docs/reference/api/pages/children-create, but clicking on API → Pages in the Reference sidebar leads me to https://getkirby.com/docs/reference/objects/cms/api/pages instead. Managed to get to the page via search, after all.
API → Pages
This also seems to be an issue with API → Site and API → Users.
API → Site
API → Users
Sorry, something went wrong.
Thanks for reporting this. I have already fixed the API reference links.
No branches or pull requests
Description
When using the API route
/api/pages/:id/children
to create a page, the API returns an error even though the page is still created.Using localhost
Using live site
Expected behavior
The API should respond with a success message, using a code between 200 and 299
To reproduce
/api/pages/:id/children
(eg. with Postman) to POST a new page with basic data302
responseYour setup
Kirby Version
Tried using both
v4.4.0
andv4.3.1
(due to redirect errors mentioned in #6676).Your system (please complete the following information)
The text was updated successfully, but these errors were encountered: