summaryrefslogtreecommitdiff
path: root/src/main/resources/META-INF
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/META-INF')
-rw-r--r--src/main/resources/META-INF/resources/lazychat/MlkLazychatSubmissionForm.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/resources/META-INF/resources/lazychat/MlkLazychatSubmissionForm.js b/src/main/resources/META-INF/resources/lazychat/MlkLazychatSubmissionForm.js
index 5b67cee..e43e135 100644
--- a/src/main/resources/META-INF/resources/lazychat/MlkLazychatSubmissionForm.js
+++ b/src/main/resources/META-INF/resources/lazychat/MlkLazychatSubmissionForm.js
@@ -71,7 +71,7 @@ export class MlkLazychatSubmissionForm extends HTMLElement {
connectedCallback() {
if (this.editedId !== null) {
this.mainForm.method = "post";
- this.mainForm.action = `/lazychat/p/${this.editedId}/edit`;
+ this.mainForm.action = `/lazychat/${this.editedId}/edit`;
}
}
@@ -89,7 +89,7 @@ export class MlkLazychatSubmissionForm extends HTMLElement {
return;
}
- let fetchUrl = new URL(`/lazychat/p/${this.editedId}`, document.URL);
+ let fetchUrl = new URL(`/posts/${this.editedId}`, document.URL);
let r = await fetch(fetchUrl);
if (!r.ok) {