humhub / app

22 stars 8 forks source link

Remove spaces in the opener URL field #209

Closed marc-farre closed 3 months ago

marc-farre commented 4 months ago

When typing a URL, Android often automatically adds a space at the end.

As this field is for a URL, we should trim entered spaces.

image

PrimozRatej commented 3 months ago

Hey @marc-farre, did you mean that texbox includes a space at the end of the input field example, like this: 'https://community.humhub.com/dashboard_'. The underscore represents a space.

I was testing, couldn't reproduce, but if this is the case, the fix is simple.

marc-farre commented 3 months ago

If a user types _https://community.humhub.com/dashboard_ (underscores represents spaces) in the URL input, the app should trim the URL to remove spaces before and after, to keep https://community.humhub.com/dashboard only.

marc-farre commented 3 months ago

@PrimozRatej works fine now, thanks!