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

Fix "Official Community" link, Improve navigation routing pattern #656

Merged
merged 34 commits into from
Oct 11, 2023

Conversation

boscojwho
Copy link
Contributor

@boscojwho boscojwho commented Sep 27, 2023

Checklist

Pull Request Information

About this Pull Request

  • FIX: "Official Community" link in Settings now opens in app again (not in-app browser).
  • Streamlines navigation routes logic and naming.

Screenshots and Videos

  • No UI changes.

Additional Context

  • Next step: Considering putting all /Navigation logic in an embedded SPM package.

- Move that logic into HandleLemmyLinks.
- Declare settings routes that wrap semantic routes as a data value.
- Documentation.
- Move some files.
- Update tests.
…rom the data that drives the presentation of views.

- Add documentation.
@boscojwho boscojwho requested a review from a team as a code owner September 27, 2023 06:16
@boscojwho boscojwho requested review from WestonHanners and JakeShirley and removed request for a team September 27, 2023 06:16
@boscojwho boscojwho changed the title Bosco/improve navigation routing pattern Fix "Official Community" link, Improve navigation routing pattern Sep 27, 2023
Copy link
Member

@EricBAndrews EricBAndrews left a comment

Choose a reason for hiding this comment

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

Official Community link still does not work if you connect using an account not registered on lemmy.world. That URL needs to adapt to the host of the user.

Other than that, looks good!

@boscojwho
Copy link
Contributor Author

boscojwho commented Oct 1, 2023

Official Community link still does not work if you connect using an account not registered on lemmy.world. That URL needs to adapt to the host of the user.

Other than that, looks good!

@EricBAndrews
Interesting:

  • This happens on beta-1.0.1-RC-2 [Aug. 9] (ff5d8f7)
  • Tested with my account on lemmy.world/lemmy.ca (opens in-app) and test.mlem.jo.wtf (opens in browser).
  • I'm not familiar with the Link Resolver, is this something related to whether an instance is federated with lemmy.ml, where our community page is hosted?

Copy link
Member

@EricBAndrews EricBAndrews left a comment

Choose a reason for hiding this comment

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

🚀

@EricBAndrews
Copy link
Member

Federation is the likely culprit. Until we have guest mode and can use that as a fallback, let's go with it as-is.

@boscojwho boscojwho merged commit 309b4a2 into dev Oct 11, 2023
4 checks passed
@boscojwho boscojwho deleted the bosco/improve-navigation-routing-pattern branch October 11, 2023 07:33
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.

2 participants