#28 ✓resolved
Martin Cohen

url_for generates incorrect URLs on Windows

Reported by Martin Cohen | September 11th, 2009 @ 02:52 PM | in Release 0.4 - Fresh Mint And Ginger

When using url_for function with multiple parameters the returned URL is incorrect on Windows:

 url_for( 'thank_you', '123' ); // => /projects/my_projects\thank_you/123

As you can see, the slash between the base URI and the Limonade URL is a backslash. The problem is in using file_path function to concatenate the URI with limonade path. However, the file_path function is using DIRECTORY_SEPARATOR global variable that is only valid for file paths and not URLs, as it's set to backslash on Windows.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Limonade is a PHP micro-framework.

People watching this ticket