[Bug]: [Self-hosted] - Share url generator adds rogue "/"
Bug Description
When generating the share url for a form, the url contains an additional "/" that should not be there
Steps to Reproduce
- Go to a form
- Click "Share" in the top right corner
- Find the share link field
- 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
@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.
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?
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