Web: People: Fixed move to edit profile (double slash in URL)

This commit is contained in:
Alexey Safronov 2021-03-19 18:36:11 +03:00
parent bb898e24cd
commit 60b57e5535
2 changed files with 3 additions and 7 deletions

View File

@ -19,7 +19,6 @@ const SimpleUserRow = ({
selectUser,
selectGroup,
deselectUser,
homepage,
setChangeEmailDialogVisible,
setChangePasswordDialogVisible,
setDeleteProfileDialogVisible,
@ -57,7 +56,7 @@ const SimpleUserRow = ({
};
const onEditClick = () => {
history.push(`${homepage}/edit/${userName}`);
history.push(`${config.homepage}/edit/${userName}`);
};
const toggleChangeEmailDialog = () => {
@ -116,7 +115,7 @@ const SimpleUserRow = ({
};
const onReassignDataClick = (e) => {
history.push(`${homepage}/reassign/${userName}`);
history.push(`${config.homepage}/reassign/${userName}`);
};
const onDeletePersonalDataClick = (e) => {
@ -281,7 +280,6 @@ const SimpleUserRow = ({
export default withRouter(
inject(({ auth, peopleStore }, { person }) => {
return {
homepage: config.homepage,
isAdmin: auth.isAdmin,
currentUserId: auth.userStore.user.id,
checked: peopleStore.selectionStore.selection.some(

View File

@ -99,7 +99,7 @@ class SectionBodyContent extends React.PureComponent {
onEditProfileClick = () =>
this.props.history.push(
`${this.props.settings.homepage}/edit/${this.props.profile.userName}`
`${config.homepage}/edit/${this.props.profile.userName}`
);
render() {
@ -195,8 +195,6 @@ class SectionBodyContent extends React.PureComponent {
export default withRouter(
inject(({ auth, peopleStore }) => ({
settings: auth.settingsStore,
homepage: config.homepage,
cultures: auth.settingsStore.cultures,
culture: auth.settingsStore.culture,
getPortalCultures: auth.settingsStore.getPortalCultures,