Fix asset paths and routing issues

- Fix asset paths from /react/templateassets/ to /react/assets/
- Fix missing slash in asset paths (/reactassets/ to /react/assets/)
- Update environment.jsx to ensure base_path always has trailing slash
- Fix BrowserRouter basename configuration
- Update Header.jsx exclusionArray paths
- Fix themeSettings and rightSidebar asset paths
This commit is contained in:
tuanOts
2025-05-25 02:11:19 +07:00
parent a32097fb4a
commit 37f11dc23a
6 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -116,8 +116,8 @@ const Header = () => {
let pathname = location.pathname;
const exclusionArray = [
"/reactjs/template/dream-pos/index-three",
"/reactjs/template/dream-pos/index-one",
"/reactjs/dream-pos/index-three",
"/reactjs/dream-pos/index-one",
];
if (exclusionArray.indexOf(window.location.pathname) >= 0) {
return "";
+1 -1
View File
@@ -257,7 +257,7 @@ const ThemeSettings = () => {
/>
<label htmlFor="rtl" className="checktoggles">
<Link
to="https://dreamspos.dreamstechnologies.com/react/template-rtl/"
to="https://dreamspos.dreamstechnologies.com/react/"
target="_blank"
>
<ImageWithBasePath