{
gchar* uri_ready;
- if (g_path_is_absolute (uri))
- return g_filename_to_uri (uri, NULL, NULL);
- else if (g_str_has_prefix(uri, "javascript:"))
+ if (g_str_has_prefix(uri, "javascript:"))
return NULL;
else if (g_file_test (uri, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR))
{
/* Add file:// if we have a local path */
if (g_path_is_absolute (uri))
- return g_strconcat ("file://", uri, NULL);
+ return g_filename_to_uri (uri, NULL, NULL);
/* Parse geo URI geo:48.202778,16.368472;crs=wgs84;u=40 as a location */
if (!strncmp (uri, "geo:", 4))
{