The documentation of toURL is quite clear: “toURL” and not “toUrl”.
Weird thing is:
- The actual field method is, and from what I can tell has been called “toUrl” ever since its introduction in commit f21a9c9b0f095cf8db3183812966a6c7e3a6d8af
- The dynamic invocation code in the
FieldAbstractclass checks the method to be called withisset(static::$methods[$method])which - to the best of my PHP knowledge - is case SENSITIVE. - Consequently, in my setup with PHP 7.1 and Kirby 2.4.1 calling
toURLjust returns the field itself which isn’t quite what is advertised in the documentation
For me, toUrl does the trick, but I found myself being very confused by all that.
So… my question is: Does toURL work for anybody and what environment are you using if it does?
