Fix redirect URL after user creation (#16)

* Fix redirect URL after user creation

* increment version; update readme
This commit is contained in:
Borislav Pantaleev 2024-09-05 09:02:29 +03:00 committed by Aine
parent 8eaaaa50ec
commit eff17a0929
No known key found for this signature in database
GPG key ID: 34969C908CCA2804
3 changed files with 5 additions and 3 deletions

View file

@ -4,7 +4,7 @@ on:
branches: [ "main" ]
env:
upstream_version: v0.10.3
etke_version: etke7
etke_version: etke8
bunny_version: v0.1.0
base_path: ./
permissions:

View file

@ -30,7 +30,7 @@ The following changes are already implemented:
* [Fix user's display name in header on user's page](https://github.com/etkecc/synapse-admin/pull/9)
* [Fix footer overlapping content](https://github.com/Awesome-Technologies/synapse-admin/issues/574)
* Switch from nginx to [SWS](https://static-web-server.net/) for serving the app, reducing the size of the Docker image
by 340%
* [Fix redirect URL after user creation](https://github.com/etkecc/synapse-admin/pull/16)
_the list will be updated as new changes are added_

View file

@ -204,7 +204,9 @@ const UserEditActions = () => {
};
export const UserCreate = (props: CreateProps) => (
<Create {...props}>
<Create { ...props} redirect={(resource, id, data) => {
return `users/${id}`;
}}>
<SimpleForm>
<TextInput source="id" autoComplete="off" validate={validateUser} />
<TextInput source="displayname" validate={maxLength(256)} />