summaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-04-18 15:48:04 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-04-18 15:48:04 +0200
commitb6081275edefe500b8dd8b5239e7ab3dd7d633a2 (patch)
tree68cbdedee388a238d906484a20dd572eeb4accbf /src/main/resources
parent6cfe16b3bf3e5c576956f4cb9d9b5d8a30cc1e87 (diff)
KB51 Add handler for post links.
Change-Id: Icb36da42fcf085ec541ba70c1421e8635d295974
Diffstat (limited to 'src/main/resources')
-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) {