Skip to content

Commit 300069f

Browse files
committed
Fix some links and routing issues
1 parent d6e1555 commit 300069f

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ React geography quiz 🌍 Originally designed for [Galicia](https://en.wikipedia
1010

1111
## Usage
1212

13-
Go to [the custom quiz page](https://minimuino.github.io/galiguessr/custom-quiz), choose a valid geojson file from your local storage, select game mode and hit play button. The geojson file must meet two requirements:
13+
Go to [the custom quiz page](https://minimuino.github.io/galiguessr/#/custom-quiz), choose a valid geojson file from your local storage, select game mode and hit play button. The geojson file must meet two requirements:
1414
- It is a valid geojson: https://datatracker.ietf.org/doc/html/rfc7946
1515
- Every Feature item has a `properties` field that includes the `name` property with some string value.
1616

src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export default function Home() {
141141
<footer className="row-start-3 flex gap-6 flex-wrap items-center justify-center text-sm">
142142
<a
143143
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
144-
href="https://github.com"
144+
href="https://github.com/Minimuino/galiguessr"
145145
target="_blank"
146146
rel="noopener"
147147
>
@@ -156,7 +156,7 @@ export default function Home() {
156156
</a>
157157
<a
158158
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
159-
href="https://github.com"
159+
href="https://github.com/Minimuino/galiguessr"
160160
target="_blank"
161161
rel="noopener"
162162
>

src/components/CreditsModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function CreditsModal({ ref }: Props) {
2929
/>
3030
<p>Copyright (c) 2025, Carlos Pérez Ramil</p>
3131
<p>
32-
Este proxecto é software libre. Podes atopar <a className="text-blue-600 hover:underline" href="https://github.com/Minimuino" target="_blank" rel="noopener">aquí</a> o código fonte publicado baixo a licencia GNU GPL v3.
32+
Este proxecto é software libre. Podes atopar <a className="text-blue-600 hover:underline" href="https://github.com/Minimuino/galiguessr" target="_blank" rel="noopener">aquí</a> o código fonte publicado baixo a licencia GNU GPL v3.
3333
</p>
3434
<ul className="text-left">
3535
<li>Orixe dos datos:</li>

src/components/GameOverModal.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,11 @@ export default function GameOverModal({ score, totalDistanceKm, datasetName, mod
4545
const scoreText = (totalDistanceKm != null) ? `${totalDistanceKm.toFixed(2)} km` : `${score}`;
4646
if (navigator.share) {
4747
await navigator.share({
48-
title: `GaliGuessr - ${datasetName} - ${t("modes." + modeName)}:`,
49-
text: scoreText,
50-
url: "https://galiguessr.gal"
48+
text: `GaliGuessr - ${datasetName} - ${t("modes." + modeName)}: ${scoreText}`,
49+
url: "https://minimuino.github.io/galiguessr/"
5150
});
5251
} else {
53-
await navigator.clipboard.writeText(`GaliGuessr - ${datasetName} - ${t("modes." + modeName)}:\n${scoreText}\nhttps://galiguessr.gal`);
52+
await navigator.clipboard.writeText(`GaliGuessr - ${datasetName} - ${t("modes." + modeName)}:\n${scoreText}\nhttps://minimuino.github.io/galiguessr/`);
5453
alert(t("gameovermodal.copiedToClipboard"));
5554
}
5655
} catch (err) {

src/main.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import { StrictMode } from "react";
99
import { createRoot } from "react-dom/client";
1010
import {
11-
createBrowserRouter,
11+
createHashRouter,
1212
RouterProvider,
1313
} from "react-router-dom";
1414
import App from "./App.tsx";
@@ -17,7 +17,7 @@ import "./index.css";
1717
import Play from "./pages/Play.tsx";
1818
import SelectFile from "./pages/SelectFile.tsx";
1919

20-
const router = createBrowserRouter([
20+
const router = createHashRouter([
2121
{
2222
path: "/",
2323
element: <App />,
@@ -29,10 +29,7 @@ const router = createBrowserRouter([
2929
{
3030
path: "/custom-quiz",
3131
element: <SelectFile />,
32-
}],
33-
{
34-
basename: import.meta.env.BASE_URL
35-
});
32+
}]);
3633

3734
createRoot(document.getElementById("root")!).render(
3835
<StrictMode>

0 commit comments

Comments
 (0)