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

web-ui/importer: use relative links for importers and accounts #1575

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NiklasMerz
Copy link
Contributor

In some network configurations it's annoying that the links in the importer
web ui point to the configured base URL. If you use VPN like tailcale you
might not have the same URL (like home network IP)to access the server.

This changes the links in the web UI to relatives URLs. Since this method
is only used in the web UI it should be pretty safe.

In some network configurations it's annoying that the links in the importer
web ui point to the configured base URL. If you use VPN like tailcale you
might not have the same URL (like home network IP)to access the server.

This changes the links in the web UI to relatives URLs. Since this method
is only used in the web UI it should be pretty safe.
@@ -1163,7 +1163,7 @@ func (ia *importerAcct) AccountObject() *Object { return ia.acct }
func (ia *importerAcct) RootObject() *Object { return ia.root }

func (ia *importerAcct) AccountURL() string {
return ia.im.URL() + "/" + ia.acct.PermanodeRef().String()
Copy link
Member

@aviau aviau Mar 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could the base url have a prefix here? ( I haven't checked )

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

Successfully merging this pull request may close these issues.

None yet

2 participants