Skip to content

Commit 9b53365

Browse files
committed
Update Layout.jsx
1 parent 52d0b0d commit 9b53365

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/js/Components/Layout.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export default function Layout({ meta, children }) {
253253
</div>
254254
)}
255255
<a
256-
href={window.location.pathname + '.md'}
256+
href={(window.location.pathname === '/' ? 'index' : window.location.pathname) + '.md'}
257257
target="_blank"
258258
class="mb-12 inline-block rounded border border-gray-400 px-2 py-1 text-xs font-medium uppercase hover:border-gray-500"
259259
>

0 commit comments

Comments
 (0)