Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-94800

URL shown in open URL dialog is not shortened

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 15w51b, Minecraft 16w36a, Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12.2, Minecraft 18w05a, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, 1.16 Pre-release 5, 1.16.3, 1.16.4, 20w46a, 20w48a, 21w06a, 1.19, 1.19.2, 23w12a, 1.20.2
    • Confirmed
    • UI

      The bug

      The URL shown in the "Are you sure you want to open the following website?" dialog is not shortened. This causes for example the warning to unreadable.

      How to reproduce

      1. Use the following command
        /tellraw @p {"text":"Link","clickEvent":{"action":"open_url","value":"http://example.com/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}}
        
      2. Click on the word "Link" in the chat

      Expected behaviour

      I would expect the link to be shortened to a maximum of two lines making sure that the protocol and domain are visible (and possibly highlighted?), replacing prefix and suffix with "..." if necessary.

            Unassigned Unassigned
            marcono1234 Marcono1234
            Votes:
            10 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: