TomatoesBurner / Agile-Web-Community-Forum

0 stars 0 forks source link

Bugfix: Error redirect page #34

Closed WannianMEI closed 1 month ago

WannianMEI commented 1 month ago

Bug: Delete comment: click the homepage avatar -> click profile -> you can manage the current user's posts and comments. When clicking delete button in the comment column, it will automatically jump to the posts col

TomatoesBurner commented 1 month ago

Do you need me fix @profile_bp.post("/comments/delete/") and @profile_bp.post("/posts/delete/") ? Or do you have any idea?

WannianMEI commented 1 month ago

Do you need me fix @profile_bp.post("/comments/delete/int:comment_id") and @profile_bp.post("/posts/delete/int:post_id") ? Or do you have any idea?

I'll fix it:

  1. add a variable tab to mark the switching state of posts and comments.
  2. js to read the tab status.
TomatoesBurner commented 1 month ago

Do you need me fix @profile_bp.post("/comments/delete/int:comment_id") and @profile_bp.post("/posts/delete/int:post_id") ? Or do you have any idea?

I'll fix it:

  1. add a variable tab to mark the switching state of posts and comments.
  2. js to read the tab status.

Ok I will review your code