fix: community directory

This commit is contained in:
Jean-Baptiste Pasquier
2021-04-13 13:31:07 +02:00
parent 65a523578c
commit 8b6ae44abd
6 changed files with 32 additions and 13 deletions

View File

@ -650,6 +650,29 @@ Some module don't need any route to be active, set `route` to `false` so.
Components can get the route of a module with `window.hubl.getRoute('componentName')`.
#### Change the default route
By default, Hubl will take a Dashboard as a default route.
You can enforce a component to be the default one by adding `defaultRoute` to its parameters.
Eg.:
```json
{
"type": "profileDirectory",
"endpoints": {
"get": "http://server.url/users/",
"skills": "http://server.url/skills/",
"uploads": "http://server.url/upload/"
},
"route": "directory",
"defaultRoute": true
}
```
If there is more than one component with this parameter, it'll be ignored.
## Troubleshooting
### Circles or Projects are missing the @user list