plebbit / plebbit-react

A GUI for plebbit
https://plebbitapp.eth.limo
GNU General Public License v2.0
35 stars 6 forks source link

URL on mobile shouldn't have the protocol is it's "https://" and should be longer before the ... #316

Closed estebanabaroa closed 1 year ago

estebanabaroa commented 1 year ago

url

the most common protocol is "https://" so we should not include it. we should include other protocols like http:// or ftp:// to warn the user that it's an uncommon protocol.

also there seems to be plenty of space left and that more characters can be visible before the ...

estebanabaroa commented 1 year ago

I noticed we should also remove 'https://www.' if any

so maybe something like

url.replace(/^https:\/\/(www.)?/, '')