Skip to content

Commit eff17a0

Browse files
beastafkaine-etke
authored andcommitted
Fix redirect URL after user creation (#16)
* Fix redirect URL after user creation * increment version; update readme
1 parent 8eaaaa5 commit eff17a0

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
branches: [ "main" ]
55
env:
66
upstream_version: v0.10.3
7-
etke_version: etke7
7+
etke_version: etke8
88
bunny_version: v0.1.0
99
base_path: ./
1010
permissions:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The following changes are already implemented:
3030
* [Fix user's display name in header on user's page](https://github.com/etkecc/synapse-admin/pull/9)
3131
* [Fix footer overlapping content](https://github.com/Awesome-Technologies/synapse-admin/issues/574)
3232
* Switch from nginx to [SWS](https://static-web-server.net/) for serving the app, reducing the size of the Docker image
33-
by 340%
33+
* [Fix redirect URL after user creation](https://github.com/etkecc/synapse-admin/pull/16)
3434

3535
_the list will be updated as new changes are added_
3636

src/resources/users.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ const UserEditActions = () => {
204204
};
205205

206206
export const UserCreate = (props: CreateProps) => (
207-
<Create {...props}>
207+
<Create { ...props} redirect={(resource, id, data) => {
208+
return `users/${id}`;
209+
}}>
208210
<SimpleForm>
209211
<TextInput source="id" autoComplete="off" validate={validateUser} />
210212
<TextInput source="displayname" validate={maxLength(256)} />

0 commit comments

Comments
 (0)