diff --git a/main.go b/main.go
index d2332a398b04dbe5012c83c046dec024f2b13804..0d6f5e186621eead212b94e21dfb2c9e6d70b6cf 100644
--- a/main.go
+++ b/main.go
@@ -1353,7 +1353,7 @@ func editHandler(w http.ResponseWriter, r *http.Request) {
 			}
 
 			// Update the user's avatar URL in the database
-			user.Avatar = fmt.Sprintf("/avatars/%s/%s", user.Username, handler.Filename)
+			user.Avatar = fmt.Sprintf("/%s_%s", user.Username, handler.Filename)
 			err = updateUser(user)
 			if err != nil {
 				http.Error(w, err.Error(), http.StatusInternalServerError)
diff --git a/output b/output
index f3c473079a7cc00b1abffe60eb83b686a1a907c6..0751b0544e2563a95796d8f6b77da0a1f5e85596 100755
Binary files a/output and b/output differ
diff --git a/view/profile.html b/view/profile.html
index 36c7dd44e7f6fb8f82d27f684f8d3055ba0ff7e1..f11adfae120ec4fb9b6e6f5ee9abe0f298727ac3 100644
--- a/view/profile.html
+++ b/view/profile.html
@@ -110,7 +110,7 @@
     <a href="/messages">Messages</a>
     <h2>Avatar</h2>
     {{if .User.Avatar}}
-    <img src="/uploads/" {{.User.Avatar}} alt="avatar" class="profile-photo">
+    <img src="/uploads" {{.User.Avatar}} alt="avatar" class="profile-photo">
     {{else}}
     <img src="https://mstd.dansmonorage.blue/system/site_uploads/files/000/000/002/original/mascot.png" alt="avatar"
         class="profile-photo">