From 91606a92ccd32e2492f4cd89a87d0d86a122fe4d Mon Sep 17 00:00:00 2001 From: shelajev Date: Mon, 11 Nov 2024 15:54:04 +0200 Subject: [PATCH] make it https? --- src/main/java/com/atomicjar/todos/entity/Todo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/atomicjar/todos/entity/Todo.java b/src/main/java/com/atomicjar/todos/entity/Todo.java index 357fc83..51bbb01 100644 --- a/src/main/java/com/atomicjar/todos/entity/Todo.java +++ b/src/main/java/com/atomicjar/todos/entity/Todo.java @@ -65,6 +65,7 @@ public void setOrder(Integer order) { } public String getUrl() { - return ServletUriComponentsBuilder.fromCurrentContextPath().toUriString() + "/todos/" + this.getId(); + String url = ServletUriComponentsBuilder.fromCurrentContextPath().toUriString() + "/todos/" + this.getId(); + return url.replaceFirst("http:", "https:"); // } }