distantnative / retour-for-kirby

Kirby CMS plugin to manage redirects and track 404s right from the Panel
https://distantnative.com/retour-for-kirby/
MIT License
135 stars 15 forks source link

4.0: Path cut off #278

Closed nilshoerrmann closed 2 years ago

nilshoerrmann commented 2 years ago

Long domain names cut of the actual path that's edited.

grafik

Ideas:

distantnative commented 2 years ago

Using the standard before slot of a text field here, so neither wrapping nor hiding on blur are really attractive options as they'd mean hacking a default field. But maybe I just check how long the domain/before text is and if more than x characters, shorten it with

nilshoerrmann commented 2 years ago

Regarding shortening: in my case, it would also work to only show the subfolder: /example.com/ instead of localhost:8888/example.com/. This would make clear where to start with my path definition without filling the full input field.

nilshoerrmann commented 2 years ago

Other ideas:

distantnative commented 2 years ago

✅ There will be a new distant native.retour.site option that allows setting a custom text or to disable the prefix completely (false).