Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Fix #34: Redirect to lang if dialect is not found #42

Closed
wants to merge 17 commits into from
Closed

Fix #34: Redirect to lang if dialect is not found #42

wants to merge 17 commits into from

Conversation

TiEul
Copy link

@TiEul TiEul commented May 10, 2020

Summary

This change means that users with browsers that send an unknow region of
a known language will still be forwarded to the correct overall language.
For example, users with a browser that sends de-AT as a locale
will still be forwarded to the de-DE locale, as the plugin will
only take the lowercase de into account while ignoring
the region-specific uppercase DE and AT.

Which package does this PR involve? (check one)

  • root project
  • vuepress-plugin-clean-urls
  • vuepress-plugin-container
  • vuepress-plugin-dehydrate
  • vuepress-plugin-medium-zoom
  • vuepress-plugin-named-chunks
  • vuepress-plugin-nprogress
  • vuepress-plugin-redirect
  • vuepress-plugin-smooth-scroll
  • vuepress-plugin-table-of-contents
  • vuepress-plugin-typescript
  • vuepress-plugin-zooming
  • vuepress-mergeable
  • vuepress-types

What kind of change does this PR introduce? (check at least one)

  • Bugfix (fix)
  • Feature (feat)
  • Performance enhancement (perf)
  • Code Style (style)
  • Refactor (refactor)
  • Docs (docs)
  • Build-related changes (build)
  • CI-related changes (ci)
  • Testing (test)
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

  • When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)

Other information:

#34

This change means that users with browsers that send an unknow region of
a known language will still be forwarded to the correct overall language.
For example, users with a browser that sends `de-AT` as a locale
will still be forwarded to the `de-DE` locale, as the plugin will
only take the lowercase `de` into account while ignoring
the region-specific uppercase `DE` and `AT`.
@stale
Copy link

stale bot commented Jul 9, 2020

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 Jul 9, 2020
@stale stale bot removed the stale label Jul 10, 2020
@TiEul TiEul closed this Jul 10, 2020
@TiEul
Copy link
Author

TiEul commented Jul 10, 2020

I can't wait any longer with this because it's fundamentally broken so I will just continue on a fork of vuepress-community myself. I am still happy to make a new pull request, please see the conversation in #34.

@meteorlxy
Copy link
Member

@TiEul

Sorry I don't have so much time for open source projects these days.

Feel free to create your own fork and thanks for your contribution~

@TiEul
Copy link
Author

TiEul commented Jul 10, 2020

@meteorlxy I totally understand that personal priorities shift but is there no one else from the Vue(Press) community who could potentially take over the maintenance of this package? I would consider it pretty important for VuePress and clearly there are still some issues with it that make it "less than ideal" for production.

I am a bit frustrated because I never even got a response about what was wrong with my commit which is also why I never followed-up with the issue in #44 because that would take a lot of time to prepare even though it's reliably reproducible. Again, I consider this commit more of a bug fix and I even have Google Analytics data to back up this lack of redirects for many browsers.

Anyway, my commit is still here now on a cleaned refork:

TiEul@ca5f7e3

@meteorlxy
Copy link
Member

In fact, this org is NOT officially maintained by VuePress team (even though I'm a member of the them).

And the new VitePress just made me not so active on VuePress.

In addition, you must know that most open source projects can not be guaranteed, because they don't have any sponsors and cannot help their authors to make a live. Just for the open source spirit!:smile:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants