Skip to content

Commit 0ed28de

Browse files
Ignores going to previous page when at /home
1 parent cd30c8b commit 0ed28de

File tree

1 file changed

+3
-1
lines changed
  • EssentialCSharp.Web/wwwroot/js

1 file changed

+3
-1
lines changed

EssentialCSharp.Web/wwwroot/js/site.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ const app = createApp({
152152
}
153153

154154
function goToPrevious() {
155-
window.location.href = "/" + PREVIOUS_PAGE;
155+
if (!window.location.href.endsWith("/home")) {
156+
window.location.href = "/" + PREVIOUS_PAGE;
157+
}
156158
}
157159
function goToNext() {
158160
window.location.href = "/" + NEXT_PAGE;

0 commit comments

Comments
 (0)