https://github.com/qgis/QGIS/issues/49513
https://github.com/qgis/QGIS/pull/49997

Index: src/gui/qgsowssourceselect.cpp
--- src/gui/qgsowssourceselect.cpp.orig
+++ src/gui/qgsowssourceselect.cpp
@@ -273,7 +273,7 @@ QgsNewHttpConnection::ConnectionType connectionTypeFro
 void QgsOWSSourceSelect::mNewButton_clicked()
 {
   const QgsNewHttpConnection::ConnectionType type = connectionTypeFromServiceString( mService );
-  QgsNewHttpConnection *nc = new QgsNewHttpConnection( this, type, "/qgis/connections-" + mService.toLower() + '/' );
+  QgsNewHttpConnection *nc = new QgsNewHttpConnection( this, type, mService.toUpper() );
 
   if ( nc->exec() )
   {
@@ -287,7 +287,7 @@ void QgsOWSSourceSelect::mNewButton_clicked()
 void QgsOWSSourceSelect::mEditButton_clicked()
 {
   const QgsNewHttpConnection::ConnectionType type = connectionTypeFromServiceString( mService );
-  QgsNewHttpConnection *nc = new QgsNewHttpConnection( this, type, "/qgis/connections-" + mService.toLower() + '/', mConnectionsComboBox->currentText() );
+  QgsNewHttpConnection *nc = new QgsNewHttpConnection( this, type, mService.toUpper(), mConnectionsComboBox->currentText() );
 
   if ( nc->exec() )
   {
