Made toolbar working in subdirectorys.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | ---
| Fixed tickets | #1087
| Refs tickets  | #1081
| License       | MIT
| Doc PR        | ---