STACK_TRACE=java.lang.IllegalArgumentException: baseUrl must end in /: https://piwigo.org/demo/index.php?/category/974/
at retrofit2.Retrofit$Builder.baseUrl(Retrofit.java:515)
at retrofit2.Retrofit$Builder.baseUrl(Retrofit.java:458)
at org.piwigo.io.RestServiceFactory.buildRetrofit(RestServiceFactory.java:88)
at org.piwigo.io.RestServiceFactory.createForUrl(RestServiceFactory.java:51)
at org.piwigo.io.repository.UserRepository.login(UserRepository.java:51)
at org.piwigo.ui.login.LoginViewModel.testConnection(LoginViewModel.java:118)
at org.piwigo.ui.login.LoginViewModel.lambda$onLoginClick$0$LoginViewModel(LoginViewModel.java:108)
at org.piwigo.ui.login.-$$Lambda$LoginViewModel$aUrhbc-Az2qHasSLzvhjaTczlw0.processFinish(lambda)
at org.piwigo.helper.URLHelper.onPostExecute(URLHelper.java:40)
at org.piwigo.helper.URLHelper.onPostExecute(URLHelper.java:14)
Expected behavior
[x] catch the exception and show it with a good explaination
[x] automatically derive the real base address of the gallery URL
Describe the bug and how to reproduce
Expected behavior