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

Check and fix routing based on non-localized routes #963

Closed
2 tasks done
andrewtavis opened this issue Sep 2, 2024 · 3 comments
Closed
2 tasks done

Check and fix routing based on non-localized routes #963

andrewtavis opened this issue Sep 2, 2024 · 3 comments
Assignees
Labels
-priority- High priority bug Something isn't working

Comments

@andrewtavis
Copy link
Member

Terms

Behavior

Because of the necessary change in #962, we now have non-localized routes for English as Netlify was breaking on them. We thus need to rework the way that routes are done to allow for non /en routes as well, so routes that lack any localization at all.

I'll look into this!

@andrewtavis andrewtavis added bug Something isn't working -priority- High priority labels Sep 2, 2024
@andrewtavis andrewtavis self-assigned this Sep 2, 2024
@aadityanairaaq
Copy link
Contributor

Hello @andrewtavis, could you please assign me to this issue?

@Mohtelsayed
Copy link

Hello @andrewtavis, could you please assign me to this issue as well? Thank you!

aadityanairaaq added a commit to CMU-17313Q/ELEV8-activist that referenced this issue Dec 11, 2024
aadityanairaaq added a commit to CMU-17313Q/ELEV8-activist that referenced this issue Dec 11, 2024
…nctions by refining path identification functions.
aadityanairaaq added a commit to CMU-17313Q/ELEV8-activist that referenced this issue Dec 11, 2024
…teUtils.ts by implementing helper functions and locals for each language for issue activist-org#963
andrewtavis added a commit that referenced this issue Dec 11, 2024
…ng-based-on-nonlocalized-routes

* Fixed route highlighting in the left sidebar for localized routes (e.g., French, German).

* fixing issue #963 through Locale Removal and using  more robust comparisons

* looked to refix issue #963 using adjustments to helper functions by refining path identification functions.

* made changes to normalizePath function within routeUtils.ts to better remove leading slashes

* created helper function for normalizePath in routeUtils.ts to improve readability

* adjusted isRouteActive to better handle conditions and routing in routeUtils.ts by implementing helper functions and locals for each language for issue #963

---------

Co-authored-by: “Aya-Abdel-Hamid” <[email protected]>
@andrewtavis
Copy link
Member Author

Closed by #1059 and other related commits :) Thanks all for the great work! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-priority- High priority bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

3 participants