Grails

g:form url-encodes slash

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 1.0.1
  • Fix Version/s: 1.0.2
  • Component/s: TagLib
  • Labels:
    None

Description

g:form url-encodes the leading slash to %2f.

Using the acegi-plugin, you won't be able to login any more, because <g:form name="loginForm" url="[action:'j_acegi_security_check', controller:'/']"> will be rendered as <form action="/someapp/%2F/j_acegi_security_check">.

Issue Links

Activity

Hide
Graeme Rocher added a comment -

"/" is not a valid controller name, use

<g:link url="/j_acegi_security_check" />

Show
Graeme Rocher added a comment - "/" is not a valid controller name, use <g:link url="/j_acegi_security_check" />

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: