Index: src/core/qgsproject.cpp =================================================================== --- src/core/qgsproject.cpp (revision 14822) +++ src/core/qgsproject.cpp (working copy) @@ -1367,6 +1367,13 @@ QString srcPath = src; QString projPath = fileName(); + QString queryString = ""; + if( srcPath.contains("?")) + { + int pos = srcPath.indexOf("?"); + queryString = srcPath.mid(pos); + srcPath = srcPath.left(pos); + } #if defined(Q_OS_WIN) srcPath.replace( "\\", "/" ); @@ -1407,7 +1414,7 @@ projElems.prepend( "" ); #endif - return projElems.join( "/" ); + return projElems.join( "/" ).append(queryString); } // return the absolute or relative path to write it to the project file @@ -1419,6 +1426,13 @@ } QString srcPath = src; + QString queryString = ""; + if( srcPath.contains("?")) + { + int pos = srcPath.indexOf("?"); + queryString = srcPath.mid(pos); + srcPath = srcPath.left(pos); + } QString projPath = fileName(); #if defined( Q_OS_WIN ) @@ -1483,7 +1497,7 @@ srcElems.insert( 0, "." ); } - return srcElems.join( "/" ); + return srcElems.join( "/" ).append(queryString); } void QgsProject::setError( QString errorMessage )