# What are the redirection options for the booking process?

HBook allows you to split the booking process in different steps that can be done on different pages:

<a id="step-1-search-form-page-accommodation-booking-page"></a>

### Step 1 : Search form page / Accommodation booking page.

You can set a redirection to your "Main booking page" with the parameters "search\_only" and "redirection\_url".

- On a **global search form**, you can set that the results of the search will be displayed on a different page. The user enters check-in date and check-out date, number of guests (if relevant) and is redirected to a different page. Here is an example of shortcode for this behavior:  
\[hb\_booking\_form search\_only="yes" redirection\_url="https://www.abc.com/main-booking-form"\]

- On a **global search form**, you can set that the user is redirected to a different page only once he has selected the accommodation he wishes to book. Here is an example of shortcode for this behavior: \[hb\_booking\_form redirection\_url="https://www.abc.com/main-booking-form"}
- On an **accommodation form**, you can set that the user is redirected after the results of his search. Here is an example of shortcode for this behavior:  
\[hb\_booking\_form accom\_id="123" redirection\_url="https://www.abc.com/main-booking-form"\]

<a id="step-2-extra-services-customer-details-and-payment"></a>

### Step 2 : Extra-services, Customer details and Payment.

You can set the redirection to your "Thank you page" with the parameter "thank\_you\_page\_url". On the second page (the "Main booking page"), you will have a booking form, and you can set a redirection for the last step.  Here is an example of shortcode for this behavior:\[  
hb\_booking\_form thank\_you\_page\_url="https://www.abc.com/thank-you-page"\]

<a id="step-3-thank-you-page"></a>

### Step 3 : Thank you page.

On this page, you will have a shortcode \[reservation\_summary\]. The user will be redirected to this page only when the reservation is finalized, be it that an online payment is required or not.