Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #11 from mapachurro/baseurl-1
Browse files Browse the repository at this point in the history
Attempting to fix homepage resolution
  • Loading branch information
mapachurro authored Jul 22, 2024
2 parents 1efc649 + 37b82a9 commit 7806107
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Education DAO Glossary</title>
<base href="/web3-glossary-website/" /> <!-- Ensure the base URL is correctly set -->
<base href="/web3-glossary-website/" />
</head>
<body>
<div id="root"></div>
<script type="module" src="./src/index.jsx"></script> <!-- Adjusted path to be relative -->
<script type="module" src="./src/index.jsx"></script>
</body>
</html>
3 changes: 1 addition & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useState, useEffect } from 'react';
import { Routes, Route, useNavigate } from 'react-router-dom';
import Search from './components/Search';
import index from './searchIndex';
import terms from './terms.json';
import EntryPage from './EntryPage';
Expand Down Expand Up @@ -38,7 +37,7 @@ function App() {

useEffect(() => {
if (searchResults.length > 0) {
const query = searchResults[0].term; // Reuse the last search query
const query = searchResults[0].term;
handleSearch(query);
}
}, [i18n.language]);
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import react from '@vitejs/plugin-react';
import path from 'path';

export default defineConfig({
base: '/web3-glossary-website/', // Set this to your repository name
base: '/web3-glossary-website/',
plugins: [react()],
resolve: {
alias: {
Expand Down

0 comments on commit 7806107

Please sign in to comment.