Enhancement for form action for subscribe component #278

Closed
opened 2023-07-17 07:42:59 +00:00 by HesterG · 1 comment
Member

Right now after clicking subscribe,
Screen Shot 2023-07-17 at 15.38.13

page will be redirected, because the response of the form action is a page and is redirected.

image

Enhancement might be made by using fecth in onSubmit handler to deal with the response page and prevent redirection and only change the component's text like something below:

Screen Shot 2023-07-17 at 15.40.20

Right now after clicking subscribe, ![Screen Shot 2023-07-17 at 15.38.13](/attachments/cc7e1131-cd45-488d-b988-d17195548a05) page will be redirected, because the response of the form action is a page and is redirected. ![image](/attachments/3d2e97e5-07e9-4c86-bd99-d101b0dbb4d7) Enhancement might be made by using fecth in `onSubmit` handler to deal with the response page and prevent redirection and only change the component's text like something below: ![Screen Shot 2023-07-17 at 15.40.20](/attachments/93cebcc9-7526-498a-bf19-42cffee1c685)
HesterG added the
kind/enhancement
label 2023-07-18 01:51:04 +00:00
Author
Member

source code for the post:

7dd7166bcf/cmd/public.go (L427)

The change might be hard to implement because this is server side render

source code for the post: https://github.com/knadh/listmonk/blob/7dd7166bcf17c50f4974192a28c634f90f589a22/cmd/public.go#L427 The change might be hard to implement because this is server side render
Sign in to join this conversation.
No description provided.