Skip to content

sec:link tag produces incorrect URL from action/controller params #446

@kossatzd

Description

@kossatzd

I'm using Grails 3.1.9 and Spring Security Core plugin 3.1.1

I have some custom voters implemented and am having issues handling the incoming URL when using the hasAccess tag.

In the hasAccess method, there is a call to create the link to pass to the webInvocationPrivilegeEvaluator but the result has 2 leading slashes. In my voter, the incoming request has a URI of '//role/create' for example.

Instead of using base: '/', , can it be changed to use includeContext: false instead?

Thanks!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions