grist-core icon indicating copy to clipboard operation
grist-core copied to clipboard

When an URL ends with a dash, it does not behave well at opening the link

Open xmontero opened this issue 5 months ago • 0 comments

Describe the current behavior

It removes the dash in the URL.

Steps to reproduce

  1. Set a cell that ends with a dash, like for example one from google drive that might end like this:

https://drive.google.com/open?id=12IpftUgNxxxxxxxxxxxxxxxxxxLKwws-

Not all google drive URLs end with a dash, but it can happen.

  1. Click on the icon like this:

image

  1. See the open URL in the browser.

It gives 404 naturally.

image

Describe the expected behavior

It should respect the URL that is stored in the cell.

Where have you encountered this bug?

Instance information (when self-hosting only)

  • Grist instance:

    • Version: I don't know how to see the version from the running instance. I run it about 1 month ago maybe.
    • URL (if it's OK for you to share it): It's on localhost
    • Installation mode: docker
  • Browser name, version and platforms on which you could reproduce the bug: Firefox

xmontero avatar Sep 07 '24 17:09 xmontero