Merge pull request #32656 from elpaso/bugfix-gh32641-server-oapif-items-link-issue

Server OAPIF fix items link in html
This commit is contained in:
Alessandro Pasotti 2019-11-07 09:21:32 +01:00 committed by GitHub
commit 038a85192e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -300,7 +300,10 @@ void QgsServerOgcApiHandler::htmlDump( const json &data, const QgsServerApiConte
QFileInfo fi{ url.path() };
auto suffix { fi.suffix() };
auto fName { fi.filePath()};
fName.chop( suffix.length() + 1 );
if ( suffix.length() != 0 )
{
fName.chop( suffix.length() + 1 );
}
fName += '/' + QString::number( args.at( 0 )->get<QgsFeatureId>( ) );
if ( !suffix.isEmpty() )
{