[GH-ISSUE #7238] [Bug] "Copy Link to Block" gets a wrong HOST name #3205

Closed
opened 2026-03-23 21:28:23 +00:00 by mirror · 4 comments
Owner

Originally created by @veictry on GitHub (Jan 18, 2025).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/7238

Bug Description

I deployed a self-host cloud in http://1.2.3.4:1234
but when I clicked "Copy Link to Block", the link we got is
"https://appflowy.com/app/f9d93ef.......?blockId=DRXQ3b"
It should be http://1.2.3.4:1234/app/......

Image

How to Reproduce

Deploy a self-host cloud and "npm run dev" a Web at the same time
Open web page and create a new document
Click the button shown in the description

Expected Behavior

http://1.2.3.4:1234/app/......

Operating System

Mac App/Web Page

AppFlowy Version(s)

0.8.0

Screenshots

No response

Additional Context

No response

Originally created by @veictry on GitHub (Jan 18, 2025). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/7238 ### Bug Description I deployed a self-host cloud in http://1.2.3.4:1234 but when I clicked "Copy Link to Block", the link we got is "https://appflowy.com/app/f9d93ef.......?blockId=DRXQ3b" It should be http://1.2.3.4:1234/app/...... <img width="225" alt="Image" src="https://github.com/user-attachments/assets/f010297c-b7d0-4c06-b507-dfcc95bd4bd6" /> ### How to Reproduce Deploy a self-host cloud and "npm run dev" a Web at the same time Open web page and create a new document Click the button shown in the description ### Expected Behavior http://1.2.3.4:1234/app/...... ### Operating System Mac App/Web Page ### AppFlowy Version(s) 0.8.0 ### Screenshots _No response_ ### Additional Context _No response_
Author
Owner

@khorshuheng commented on GitHub (Jan 18, 2025):

Have you updated the web url under settings (the same page where you set the self host url)? If not set, appflowy.com will be used as the default.

<!-- gh-comment-id:2599790212 --> @khorshuheng commented on GitHub (Jan 18, 2025): Have you updated the web url under settings (the same page where you set the self host url)? If not set, appflowy.com will be used as the default.
Author
Owner

@veictry commented on GitHub (Jan 20, 2025):

Hi Khorshuheng,

 Thanks for your answer!
 I checked my configuration and found that the ENV VAR **AF_BASE_URL** has been set as the right value:
appflowy_web:
    image: node:22.13.0
    environment:
      AF_BASE_URL: http://triage-system:13030
      AF_GOTRUE_URL: http://triage-system:13030/gotrue
      AF_WS_URL: ws://triage-system:13030/ws/v1

Is there another variable I need to set?

<!-- gh-comment-id:2601429750 --> @veictry commented on GitHub (Jan 20, 2025): Hi Khorshuheng, Thanks for your answer! I checked my configuration and found that the ENV VAR **AF_BASE_URL** has been set as the right value: ``` appflowy_web: image: node:22.13.0 environment: AF_BASE_URL: http://triage-system:13030 AF_GOTRUE_URL: http://triage-system:13030/gotrue AF_WS_URL: ws://triage-system:13030/ws/v1 ``` Is there another variable I need to set?
Author
Owner

@khorshuheng commented on GitHub (Jan 20, 2025):

Just to confirm, when you click Copy Link to Block , that's done from the desktop/mobile App, not AppFlowy Web right?

<!-- gh-comment-id:2601471443 --> @khorshuheng commented on GitHub (Jan 20, 2025): Just to confirm, when you click `Copy Link to Block` , that's done from the desktop/mobile App, not AppFlowy Web right?
Author
Owner

@LucasXu0 commented on GitHub (Jan 21, 2025):

@veictry I noticed that you're using version 0.8.0. Please upgrade to the latest version 0.8.1, which supports customizing web URL.

Image
<!-- gh-comment-id:2603453595 --> @LucasXu0 commented on GitHub (Jan 21, 2025): @veictry I noticed that you're using version 0.8.0. Please upgrade to the latest version 0.8.1, which supports customizing web URL. <img width="764" alt="Image" src="https://github.com/user-attachments/assets/35a1d5b1-394c-4337-8b2a-b80736d6f180" />
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#3205
No description provided.