We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ed28de commit ad4f20bCopy full SHA for ad4f20b
EssentialCSharp.Web/wwwroot/js/site.js
@@ -152,12 +152,16 @@ const app = createApp({
152
}
153
154
function goToPrevious() {
155
- if (!window.location.href.endsWith("/home")) {
156
- window.location.href = "/" + PREVIOUS_PAGE;
+ let previousPage = PREVIOUS_PAGE;
+ if (previousPage !== null) {
157
+ window.location.href = "/" + previousPage;
158
159
160
function goToNext() {
- window.location.href = "/" + NEXT_PAGE;
161
+ let nextPage = NEXT_PAGE;
162
+ if (nextPage !== null) {
163
+ window.location.href = "/" + nextPage;
164
+ }
165
166
167
document.addEventListener("keydown", (e) => {
0 commit comments