You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by wa...@apache.org on 2022/12/26 09:50:54 UTC

[dolphinscheduler-website] branch master updated: [Fix] Removed hash. (#872)

This is an automated email from the ASF dual-hosted git repository.

wanggenhua pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 169638743f [Fix] Removed hash. (#872)
169638743f is described below

commit 169638743f92e95b410308e833b714e51115a10f
Author: Amy0104 <wa...@apache.org>
AuthorDate: Mon Dec 26 17:50:49 2022 +0800

    [Fix] Removed hash. (#872)
---
 public/404.html                         |  2 +-
 src/views/Blog/Detail.jsx               |  2 +-
 src/views/Documentation/Detail.jsx      | 26 +++++++++++++-------------
 src/views/Documentation/SearchModal.jsx |  4 ++--
 src/views/Documentation/index.jsx       |  4 ++--
 src/views/Download/Deployment.jsx       |  2 +-
 src/views/Download/Version.jsx          |  2 +-
 src/views/Event/Detail.jsx              |  2 +-
 8 files changed, 22 insertions(+), 22 deletions(-)

diff --git a/public/404.html b/public/404.html
index 3bfff310f6..4ac83db7b9 100644
--- a/public/404.html
+++ b/public/404.html
@@ -43,7 +43,7 @@
           const url = href
             .replace(/.html/, "")
             .replace(/\/user_doc/, "")
-            .replace(lang, `#/${lang}`);
+            .replace(lang, `/${lang}`);
           window.location.replace(url);
           return;
         }
diff --git a/src/views/Blog/Detail.jsx b/src/views/Blog/Detail.jsx
index 0a51c79e29..2a87c1e3b8 100644
--- a/src/views/Blog/Detail.jsx
+++ b/src/views/Blog/Detail.jsx
@@ -17,7 +17,7 @@ export const BlogDetail = () => {
         <>
           <Breadcrumb>
             <Breadcrumb.Item>
-              <a href={`#/${locale}/blog`}>Blog</a>
+              <a href={`/${locale}/blog`}>Blog</a>
             </Breadcrumb.Item>
             <Breadcrumb.Item>{detail.title}</Breadcrumb.Item>
           </Breadcrumb>
diff --git a/src/views/Documentation/Detail.jsx b/src/views/Documentation/Detail.jsx
index 0fd4333fec..aedffa4a8a 100644
--- a/src/views/Documentation/Detail.jsx
+++ b/src/views/Documentation/Detail.jsx
@@ -1,11 +1,11 @@
-import { Breadcrumb, Spin, Empty, Space, Button } from 'antd';
-import { LinkOutlined } from '@ant-design/icons';
-import { useParams, useNavigate } from 'react-router-dom';
-import { useDocumentationDetail } from './useDocumentationDetail';
-import { useTranslation } from '../../hooks';
-import { formatDate } from '../../utils/formatDate';
-import { getLinkFromLocation } from './helpers';
-import './detail.scss';
+import { Breadcrumb, Spin, Empty, Space, Button } from "antd";
+import { LinkOutlined } from "@ant-design/icons";
+import { useParams, useNavigate } from "react-router-dom";
+import { useDocumentationDetail } from "./useDocumentationDetail";
+import { useTranslation } from "../../hooks";
+import { formatDate } from "../../utils/formatDate";
+import { getLinkFromLocation } from "./helpers";
+import "./detail.scss";
 
 export const DocumentationDetail = () => {
   const params = useParams();
@@ -18,7 +18,7 @@ export const DocumentationDetail = () => {
         <>
           <Breadcrumb>
             <Breadcrumb.Item>
-              <a href={`#/${params.locale}/docs/${params.version}`}>
+              <a href={`/${params.locale}/docs/${params.version}`}>
                 Version {params.version}
               </a>
             </Breadcrumb.Item>
@@ -27,7 +27,7 @@ export const DocumentationDetail = () => {
                 <Breadcrumb.Item key={i}>
                   {i < detail.location.length - 1 ? (
                     <a
-                      href={`#/${params.locale}/docs/${
+                      href={`/${params.locale}/docs/${
                         params.version
                       }${getLinkFromLocation(detail.location, i)}`}
                     >
@@ -42,18 +42,18 @@ export const DocumentationDetail = () => {
           <div className="documentation-detail-title">{detail.title}</div>
           <div className="documentation-detail-desc">
             <Space className="documentation-detail-time">
-              <span>{t('last_updated')}</span>
+              <span>{t("last_updated")}</span>
               <span>{formatDate(detail.time, locale)}</span>
             </Space>
             <Space className="documentation-detail-support">
-              <span>{t('not_helpful')}</span>
+              <span>{t("not_helpful")}</span>
               <Button
                 type="link"
                 onClick={() => {
                   navigate(`/${params.locale}/support`);
                 }}
               >
-                {t('get_support')} <LinkOutlined />
+                {t("get_support")} <LinkOutlined />
               </Button>
             </Space>
           </div>
diff --git a/src/views/Documentation/SearchModal.jsx b/src/views/Documentation/SearchModal.jsx
index 46b27c8dab..1edcb2f68e 100644
--- a/src/views/Documentation/SearchModal.jsx
+++ b/src/views/Documentation/SearchModal.jsx
@@ -52,7 +52,7 @@ const SearchModal = ({ open, list, value, onClose, loading, handleSearch }) => {
             >
               <Breadcrumb>
                 <Breadcrumb.Item>
-                  <a href={`#/${params.locale}/docs/${params.version}`}>
+                  <a href={`/${params.locale}/docs/${params.version}`}>
                     Version {params.version}
                   </a>
                 </Breadcrumb.Item>
@@ -60,7 +60,7 @@ const SearchModal = ({ open, list, value, onClose, loading, handleSearch }) => {
                   item.location.map((slip, i) => (
                     <Breadcrumb.Item key={i}>
                       <a
-                        href={`#/${params.locale}/docs/${
+                        href={`/${params.locale}/docs/${
                           params.version
                         }${getLinkFromLocation(item.location, i)}`}
                       >
diff --git a/src/views/Documentation/index.jsx b/src/views/Documentation/index.jsx
index 3d53e14a67..1d13b54b82 100644
--- a/src/views/Documentation/index.jsx
+++ b/src/views/Documentation/index.jsx
@@ -145,7 +145,7 @@ const Documentation = () => {
           <>
             <Breadcrumb>
               <Breadcrumb.Item>
-                <a href={`#/${params.locale}/docs/${params.version}`}>
+                <a href={`/${params.locale}/docs/${params.version}`}>
                   Version {params.version}
                 </a>
               </Breadcrumb.Item>
@@ -153,7 +153,7 @@ const Documentation = () => {
                 child.location.map((item, i) => (
                   <Breadcrumb.Item key={i}>
                     <a
-                      href={`#/${params.locale}/docs/${
+                      href={`/${params.locale}/docs/${
                         params.version
                       }${getLinkFromLocation(child.location, i)}`}
                     >
diff --git a/src/views/Download/Deployment.jsx b/src/views/Download/Deployment.jsx
index 1508c0a487..a2c7c83a1b 100644
--- a/src/views/Download/Deployment.jsx
+++ b/src/views/Download/Deployment.jsx
@@ -28,7 +28,7 @@ export const Deployment = () => {
         <div className="deployment-box">
           <Breadcrumb>
             <Breadcrumb.Item>
-              <a href={`#/${locale}/download`}>{t("download")}</a>
+              <a href={`/${locale}/download`}>{t("download")}</a>
             </Breadcrumb.Item>
             <Breadcrumb.Item>{deployments[current].type}</Breadcrumb.Item>
           </Breadcrumb>
diff --git a/src/views/Download/Version.jsx b/src/views/Download/Version.jsx
index dc62af52a0..49033569d9 100644
--- a/src/views/Download/Version.jsx
+++ b/src/views/Download/Version.jsx
@@ -26,7 +26,7 @@ export const Version = () => {
     <section className="download-version">
       <Breadcrumb>
         <Breadcrumb.Item>
-          <a href={`#/${params.locale}/download`}>{t("download")}</a>
+          <a href={`/${params.locale}/download`}>{t("download")}</a>
         </Breadcrumb.Item>
         <Breadcrumb.Item>{params.version}</Breadcrumb.Item>
       </Breadcrumb>
diff --git a/src/views/Event/Detail.jsx b/src/views/Event/Detail.jsx
index 237cb7e756..f2cc192b73 100644
--- a/src/views/Event/Detail.jsx
+++ b/src/views/Event/Detail.jsx
@@ -19,7 +19,7 @@ export const EventDetail = () => {
           <>
             <Breadcrumb>
               <Breadcrumb.Item>
-                <a href={`#/${locale}/events`}>Event</a>
+                <a href={`/${locale}/events`}>Event</a>
               </Breadcrumb.Item>
               <Breadcrumb.Item>{detail.title}</Breadcrumb.Item>
             </Breadcrumb>