diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-04-18 15:48:04 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-04-18 15:48:04 +0200 |
commit | b6081275edefe500b8dd8b5239e7ab3dd7d633a2 (patch) | |
tree | 68cbdedee388a238d906484a20dd572eeb4accbf /src/main/resources | |
parent | 6cfe16b3bf3e5c576956f4cb9d9b5d8a30cc1e87 (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.js | 4 |
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) { |