Skip to content

Commit

Permalink
Fix redirect URL after user creation (#16)
Browse files Browse the repository at this point in the history
* Fix redirect URL after user creation

* increment version; update readme
  • Loading branch information
beastafk authored and aine-etke committed Sep 5, 2024
1 parent 8eaaaa5 commit eff17a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_

Expand Down
4 changes: 3 additions & 1 deletion src/resources/users.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)} />
Expand Down

0 comments on commit eff17a0

Please sign in to comment.