# Page Routing Logic

The system always routes the user to the correct page:

* **Forward Routing**: If the current page is completed and valid, proceed to the next page.
* **Backward Routing**: If the prerequisites of the current page are not met, return to the previous page.
* **Skipping**: Some pages are automatically skipped depending on the user's state (for example: if there is only one delivery option, the selection page is skipped).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apidocs.akinon.com/commerce-openapis/checkout/actions-performed-on-checkout-get-requests/page-routing-logic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
