Skip to content

Commit

Permalink
Server OAPIF fix items link in html
Browse files Browse the repository at this point in the history
Fixes #32641
  • Loading branch information
elpaso authored and nyalldawson committed Nov 7, 2019
1 parent 31b2c32 commit 841f8b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/server/qgsserverogcapihandler.cpp
Expand Up @@ -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() )
{
Expand Down

0 comments on commit 841f8b7

Please sign in to comment.