Skip to content

Commit deeb338

Browse files
authored
Update edit.html
1 parent 145200a commit deeb338

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Wiki/edit.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ <h2>Edit Wiki Post</h2>
117117

118118
if (!wikiTitle) {
119119
alert('No wiki title provided to edit.');
120-
window.location.href = 'index.html'; // Redirect to main page
120+
window.location.href = 'sitemaplinks.html'; // Redirect to main page
121121
return;
122122
}
123123

@@ -133,7 +133,7 @@ <h2>Edit Wiki Post</h2>
133133

134134
if (!wiki) {
135135
alert('Wiki not found!');
136-
window.location.href = 'Wiki/wiki'; // Redirect to wiki list if not found
136+
window.location.href = 'sitemaplinks.html'; // Redirect to wiki list if not found
137137
} else {
138138
wikiId = wiki.id; // Store the wiki ID
139139
wikiTitleInput.value = wiki.title;
@@ -175,7 +175,7 @@ <h2>Edit Wiki Post</h2>
175175

176176
if (response.ok) {
177177
alert('Wiki updated successfully!');
178-
window.location.href = 'Wiki/wiki.html'; // Redirect to Wiki/wiki.html after saving
178+
window.location.href = 'sitemaplinks.html'; // Redirect to Wiki/wiki.html after saving
179179
} else {
180180
const errorDetails = await response.json();
181181
console.error('Failed to update wiki:', errorDetails);

0 commit comments

Comments
 (0)