Comments (2)
I would not implement that, the org.springframework.web.servlet.view.RedirectView
also does not consider the server.servlet.context-path
In your above example, if you do that
@GetMapping("/redirect")
public View redirect() {
return new RedirectView("/redirect-target");
}
And you then perform GET /bot-webapp/redirect
then your target will be /redirect-target
instead of /bot-webapp/redirect-target
- you would need to add the context-path
parameter here as well.
So I'd stick with the default behaviour of Spring MVC here.
from htmx-spring-boot.
Thanks for this information @klu2 I will indeed align with the default behaviour of Spring MVC.
from htmx-spring-boot.
Related Issues (20)
- Functional HTMX Endpoints HOT 10
- Add HxPush annotation HOT 11
- Adding HtmxUtils for better reference in Templates HOT 5
- Unable to release version 3.3.0 HOT 10
- Remove commented out spring-asciidoctor-backends in pom.xml? HOT 1
- Spring Security filter chain config HOT 2
- hx:vals not working with multiple key-values HOT 3
- Preserve the order of templates inside HtmxResponse HOT 1
- add reswap to HtmxResponse HOT 3
- adding multiple triggers causes exception HOT 5
- Separate template engine specific code from htmx-spring-boot integration HOT 2
- Ver. 3.0.0 breaks with spring-boot 3.1.2 HOT 11
- @WebMvcTest needs META-INF configuration HOT 4
- Unable to find 1.x within maven central HOT 2
- Support for trigger name in `@HxRequest` HOT 9
- Rethink annotation support for htmx response headers HOT 39
- Support HtmxResponse in error handlers
- [feature request]: RedirectAttributes with .redirect() ? HOT 2
- CVE-2023-6378 in spring boot starter logging, in logback core HOT 3
- spring boot 3.2.3: umlaut encoding issue? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from htmx-spring-boot.