heyform icon indicating copy to clipboard operation
heyform copied to clipboard

[Bug]: [Self-hosted] - Share url generator adds rogue "/"

Open robin-scharf opened this issue 8 months ago • 3 comments

Bug Description

When generating the share url for a form, the url contains an additional "/" that should not be there

Steps to Reproduce

  1. Go to a form
  2. Click "Share" in the top right corner
  3. Find the share link field
  4. See the additional "/" (e. g. https://hf.robinscharf.com/**/**form/abcde12345)

Expected Behavior

The url should not contain a roughe "/"

Screenshots

https://github.com/user-attachments/assets/cda92e4d-85b1-454a-9859-0f75b78d78f4

HeyForm Installation

self hosted

Version

https://hub.docker.com/layers/heyform/community-edition/latest/images/sha256-f64e9c3ad54ee3bc6488e592fbe083e2220c818930e0a39b25a8e8834fae7902

Desktop OS

macOS

Desktop Browser

Firefox

Desktop Browser Version

137.0.2 (aarch64)

Mobile Device

None

Mobile OS

None

Mobile Browser

None

Mobile Browser Version

No response

robin-scharf avatar Apr 30 '25 20:04 robin-scharf

@RobSteward

We've updated the APP_HOMEPAGE_URL configuration:

Earlier: APP_HOMEPAGE_URL: https://form.domain.com/

Updated to: APP_HOMEPAGE_URL: https://form.domain.com

The trailing slash has been removed to ensure consistency across the application and prevent potential redirect or URL resolution issues.

sacredabhishek avatar May 26 '25 11:05 sacredabhishek

Hi @sacredabhishek! Thanks for the update. Seems like your CI/CD platform does not push to update the docker image: https://hub.docker.com/r/heyform/community-edition? Can you update that?

Image

robin-scharf avatar May 29 '25 07:05 robin-scharf

I have a somewhat similar problem but it's when i try to connect to mydomain.tld/forms, i keep redirected to mydomain.tld/login instead of mydomain.tld/forms/login

orjawell avatar Aug 16 '25 19:08 orjawell