Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

Merge branch 'dev' into feat/1.0.7/ui

haitaooa6720613bdc3
diff --cc ui/src/components/Header/index.tsx
index 62618528,ced8ffc0..3ed3f66c
--- a/ui/src/components/Header/index.tsx
+++ b/ui/src/components/Header/index.tsx
@@@ -70,12 -70,14 +70,17 @@@ const Header: FC = () =>
window.location.replace(window.location.href);
};
const onLoginClick = (evt) => {
- evt.preventDefault();
+ if (location.pathname === '/users/login') {
++ evt.preventDefault();
+ window.location.reload();
+ return;
+ }
- floppyNavigation.navigateToLogin((loginPath) => {
- navigate(loginPath, { replace: true });
- });
+ if (floppyNavigation.shouldProcessLinkClick(evt)) {
+ evt.preventDefault();
+ floppyNavigation.navigateToLogin((loginPath) => {
+ navigate(loginPath, { replace: true });
+ });
+ }
};
useEffect(() => {