# HAMUR_W3011: setPageLayout() runs during the server render

setPageLayout() runs during the server render. Warning `HAMUR_W3011` belongs to `hamur`, client and shared app code (3001 – 3999).

## Message

```text
HAMUR_W3011 setPageLayout() during the server render changes nothing: the layout has rendered; call it in route middleware
```

## Cause

`setPageLayout()` ran during the server render, after the layout rendered. It changes nothing.

## Fix

Call it in route middleware.
