mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-04 19:30:51 +01:00
Merge branch 'develop' into feature/diff-anchor-links
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user