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

link_to not generating correct URLs when using i18n and directory_indexes #2639

Open
jetxr opened this issue May 3, 2023 · 1 comment
Open
Labels

Comments

@jetxr
Copy link

jetxr commented May 3, 2023

Expected behavior and actual behavior

link_to does not generate correctly prefixed i18n URLs when using directory_indexes.

I somehow remember this working before. Has anything changed or was this always the case?

Steps to reproduce the problem (from a clean middleman installation)

Reproduced here: https://github.com/jetxr/mm-i18n-test/blob/main/source/localizable/index.html.erb

  • Followed steps in the docs to add i18n
  • Links with link_to are correctly generated with the locale prefixed when inside the locale's namespaced path
  • Add activate :directory_indexes to config.rb
  • Change link_to to target /page/index.html (or leave it page.html)
  • Links will lead to the root locale's page even when inside locale's namespaced path

Additional information

Copy link

stale bot commented Jan 20, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 20, 2024
@tdreyno tdreyno added notstale and removed stale labels Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants