首页 > 解决方案 > Grails 3.3.10 and strange behavior in the URLs

问题描述

I'm developing an application using Grails 3.3.10 using Spring security plugin but I'm getting very weird behavior, when I run the application using -https for instance I finished editing the Profile in the edit.gsp here its URL https://localhost:8443/profile/edit/1 and I press Update so it will suppose to take me to the index.gsp but the URL I get is http://localhost:8080//profile/index as you can see the URL isn't https and there is extra / by the way this is happing in a lot of the views. What is the reason for this behavior

标签: grailsgrails3

解决方案


我弄清楚我在配置文件中发现这种奇怪行为的原因是什么application.yml,该属性grails.serverURL配置了两次,所以我评论了它们,一切正常


推荐阅读