Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] "Copy Link to Block" gets a wrong HOST name #7238

Open
veictry opened this issue Jan 18, 2025 · 4 comments
Open

[Bug] "Copy Link to Block" gets a wrong HOST name #7238

veictry opened this issue Jan 18, 2025 · 4 comments

Comments

@veictry
Copy link

veictry commented Jan 18, 2025

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

@khorshuheng
Copy link
Collaborator

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.

@veictry
Copy link
Author

veictry commented 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?

@khorshuheng
Copy link
Collaborator

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

@LucasXu0
Copy link
Collaborator

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants