Merge branch 'develop' into feature/diff-anchor-links

This commit is contained in:
Sebastian Sdorra
2020-09-02 10:42:30 +02:00
committed by GitHub
3 changed files with 7 additions and 12 deletions

View File

@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Add support for scroll anchors in url hash of diff page ([#1304](https://github.com/scm-manager/scm-manager/pull/1304))
### Fixed
- Redirection to requested page after login in anonymous mode
## [2.4.1] - 2020-09-01
### Added
- Add "sonia.scm.restart-migration.wait" to set wait in milliseconds before restarting scm-server after migration ([#1308](https://github.com/scm-manager/scm-manager/pull/1308))

View File

@@ -72,10 +72,10 @@ class ErrorBoundary extends React.Component<Props, State> {
}
redirectToLogin = (error: Error) => {
const { loginLink } = this.props;
const { loginLink, location } = this.props;
if (error instanceof MissingLinkError) {
if (loginLink) {
window.location.assign(withContextPath("/login"));
window.location.assign(withContextPath("/login?from=" + location.pathname));
}
}
};

View File

@@ -37,16 +37,8 @@ const yarn = args => {
}
};
const version = version => {
yarn([
"run",
"lerna",
"--no-git-tag-version",
"--no-push",
"version",
"--yes",
version
]);
const version = v => {
yarn(["run", "lerna", "--no-git-tag-version", "--no-push", "version", "--force-publish", "--yes", v]);
};
const publish = () => {