Merged
Conversation
/user -> /u /community -> /c
Fix null on navigating to community page.
Member
|
I'd like to create a Docker image for the web frontend once it's ready, so I'll figure out a way we can get environment variables to work with it when the time comes. |
jwr1
approved these changes
Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Routes now start with the current instance. Community and user routes now use the name rather than numerical id.
So common routes should now be in the following format
https://example.tld/${instance}/u/${user_name}https://example.tld/${instance}/c/${community_name}/thread/${postId}https://example.tld/${instance}/c/${community_name}/microblog/${postId}Allow setting default instance/account using environment variables.
defaultInstancefor the hostname of the instance. E.g.kbin.earth,piefed.social,lemmy.world.defaultSoftwarefor the software type. E.g.mbin,piefedorlemmy.Environment variables don't seem to affect the web build. Instead add
--dart-define $VAR_NAME=$VALUEto the end offlutter build web. E.g.flutter build web --dart-define defaultInstance=piefed.social --dart-define defaultSoftware=piefedshould build withpiefed.socialas the default instance rather thankbin.earth.