vert-x3 / vertx-web

HTTP web applications for Vert.x
Apache License 2.0
1.11k stars 535 forks source link

It does not allow loading templates that are outside of the path. #2576

Closed gabrielmarquez29 closed 9 months ago

gabrielmarquez29 commented 9 months ago

Questions

Do not use this issue tracker to ask questions, instead use one of these channels. Questions will likely be closed without notice.

Version

Which version(s) did you encounter this bug ? version 4.5.2

Context

Can't load in template "admin/path1/page1" template header @include{'/admin/commom/header.templ'} image image

Do you have a reproducer?

Static Path1 -> Page1 will fail. image

Reproducers are very helpful for contributors and will likely help them fixing your bug faster.

Steps to reproduce

run mainVerticle in browser http://127.0.0.1:8080/ Click first link Static Path 1 -> Page 1

Extra

tsegismont commented 9 months ago

This is most likely a duplicate of #2544

See the limitation about includes documented in https://vertx.io/docs/vertx-web/java/#_mvel_template_engine