From fec5fde0a3a98f8f2ecbfe9ba4da235b6f667fb7 Mon Sep 17 00:00:00 2001 From: Janne Valkealahti Date: Thu, 13 Jun 2024 15:15:55 +0100 Subject: [PATCH] Add trailing slash to dashboard (#5811) - Boot 3.x changed handling of trailing slash meaning it's now adviced to define both /dashboard and /dashboard/ in UiController --- .../cloud/dataflow/server/controller/UiController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/controller/UiController.java b/spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/controller/UiController.java index 1f364f80ff..bf1cc53de1 100644 --- a/spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/controller/UiController.java +++ b/spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/controller/UiController.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ * @author Gunnar Hillert */ @Controller -@RequestMapping(UiController.WEB_UI_INDEX_PAGE_ROUTE) +@RequestMapping({ UiController.WEB_UI_INDEX_PAGE_ROUTE, UiController.WEB_UI_INDEX_PAGE_ROUTE + "/" }) public class UiController { public static final String WEB_UI_INDEX_PAGE_ROUTE = "/dashboard";