Skip to content

UrlTag mishandles foreign root context URIs [SPR-12782] #17380

@spring-projects-issues

Description

@spring-projects-issues

Pavel Horal opened SPR-12782 and commented

When constructing URL for a foreign root context (i.e. /):

<spring:url value="/foo" context="/" />

the expected output is /foo.

However UrlTag incorrectly renders //foo, which is equivalent to incorrect URL http://foo.

This behavior is also inconsistent with the JSTL's <c:url> tag.


Affects: 4.1.5

Referenced from: commits 8b545f4

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions