You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/11/10 03:44:25 UTC
[GitHub] [apisix-website] yzeng25 opened a new issue #713: Need to modify case-sensitive URLs
yzeng25 opened a new issue #713:
URL: https://github.com/apache/apisix-website/issues/713
**Actual Behaviour**
<!--Please state here what is currently happening.-->
Currently, the URLs on blogs are case-sensitive, which is resulted from rules set by Apache Server. The case-sensitive URLs become inconvenient when referencing them in other websites and social media. Some might change the upper-case letters in the URLs to lower-case letters automatically. Yet visiting the low-case URLs would return a 404 page.
From the user's aspect (i.e. anyone tries to visit the URLs for the first time) would not be able to access the contents in URLs. And the user experience can be improved.
**Expected Behaviour**
<!--State here what the feature should enable the user to do.-->
1. input the URLs with upper-case letters, it is accessible
2. input the URLs with lower-case letters, it is also accessible
**Steps to reproduce it**
Take https://apisix.apache.org/blog/2021/06/28/why-we-need-Apache-APISIX/ for example:
1. Open your browser.
2. Input the URL:https://apisix.apache.org/blog/2021/06/28/why-we-need-Apache-APISIX/
3. Access the content successfully.
4. Change `Apache-APISIX` to lower-case `apache-apisix`
5. Returns 404.
<!--Add steps to reproduce bugs or add information on the place where the feature should be implemented. Add links to a sample deployment or code.-->
**Screenshots of the issue**


<!--Where-ever possible attach a screenshot of the issue.-->
**Would you like to work on the issue?**
yes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] yzeng25 commented on issue #713: Need to modify case-sensitive URLs
Posted by GitBox <gi...@apache.org>.
yzeng25 commented on issue #713:
URL: https://github.com/apache/apisix-website/issues/713#issuecomment-1050474446
> Seems lower-case or upper-case both works well, but on https://apisix.apache.org/ reproduced easily.
Yes. You can take a look at [plugin-client-redirects](https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-client-redirects).
My initial thought is to collect all URLs with capitalized letters then use the plugin-client-redirects to convert them, examples can be found at [Example Configuration](https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-client-redirects#ex-config).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] mangoGoForward commented on issue #713: Need to modify case-sensitive URLs
Posted by GitBox <gi...@apache.org>.
mangoGoForward commented on issue #713:
URL: https://github.com/apache/apisix-website/issues/713#issuecomment-1050456705
I launched the website in local, but did not reproduce this issue, it's so strange, and the screenshot like below:


@yzeng25
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] yzeng25 commented on issue #713: Need to modify case-sensitive URLs
Posted by GitBox <gi...@apache.org>.
yzeng25 commented on issue #713:
URL: https://github.com/apache/apisix-website/issues/713#issuecomment-1022749542
> yes, I would like to work on this, please assign me this issue.
Cool! Glad to see you solving another issue!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] yzeng25 commented on issue #713: Need to modify case-sensitive URLs
Posted by GitBox <gi...@apache.org>.
yzeng25 commented on issue #713:
URL: https://github.com/apache/apisix-website/issues/713#issuecomment-1023164178
> Hey @yzeng25, is this how we are supposed to add slug to each blogpost?
>
> <img alt="image" width="899" src="https://user-images.githubusercontent.com/85433137/151345933-9d594201-7f0f-4b3c-92a9-d471394f478a.png">
Hi @adarrssh, we'd like to avoid using `slug` because it violates our expected result. I would suggest try method 3, the [plugin-client-redirects](https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-client-redirects) to solve it. (see comments/discussion above).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] yzeng25 commented on issue #713: Need to modify case-sensitive URLs
Posted by GitBox <gi...@apache.org>.
yzeng25 commented on issue #713:
URL: https://github.com/apache/apisix-website/issues/713#issuecomment-989589680
> How about this?
>
> * For future posts, we use slug property & lowercase URLs only;
> * For the current posts, we could use plugins to redirect historical URLs to lowercase.
Sure!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] namangirdhar16 commented on issue #713: Need to modify case-sensitive URLs
Posted by GitBox <gi...@apache.org>.
namangirdhar16 commented on issue #713:
URL: https://github.com/apache/apisix-website/issues/713#issuecomment-965007923
@juzhiyuan @yzeng25 if this issue is open, can i work on this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] juzhiyuan closed issue #713: Need to modify case-sensitive URLs
Posted by GitBox <gi...@apache.org>.
juzhiyuan closed issue #713:
URL: https://github.com/apache/apisix-website/issues/713
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] juzhiyuan edited a comment on issue #713: Need to modify case-sensitive URLs
Posted by GitBox <gi...@apache.org>.
juzhiyuan edited a comment on issue #713:
URL: https://github.com/apache/apisix-website/issues/713#issuecomment-989569360
How about this?
- For future posts, we use slug property & lowercase URLs only;
- For the current posts, we could use plugins to redirect historical URLs to lowercase.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] mangoGoForward commented on issue #713: Need to modify case-sensitive URLs
Posted by GitBox <gi...@apache.org>.
mangoGoForward commented on issue #713:
URL: https://github.com/apache/apisix-website/issues/713#issuecomment-1049704044
I'd like to tackle it, may need your help, thanks.
/assign
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] juzhiyuan commented on issue #713: Need to modify case-sensitive URLs
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #713:
URL: https://github.com/apache/apisix-website/issues/713#issuecomment-965263337
Wow! Nice to meet you here!!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] yzeng25 commented on issue #713: Need to modify case-sensitive URLs
Posted by GitBox <gi...@apache.org>.
yzeng25 commented on issue #713:
URL: https://github.com/apache/apisix-website/issues/713#issuecomment-965896197
> @juzhiyuan @yzeng25 if this issue is open, can i work on this?
Yes, glad to see that :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] adarrssh commented on issue #713: Need to modify case-sensitive URLs
Posted by GitBox <gi...@apache.org>.
adarrssh commented on issue #713:
URL: https://github.com/apache/apisix-website/issues/713#issuecomment-1022069843
@juzhiyuan is this issue open?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] juzhiyuan commented on issue #713: Need to modify case-sensitive URLs
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #713:
URL: https://github.com/apache/apisix-website/issues/713#issuecomment-1022193902
Hi @adarrssh, yes, this issue is still open because some URLs still have this problem. Would you like to try to fix them? by converting URLs from CamelCase to lowercase.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] adarrssh edited a comment on issue #713: Need to modify case-sensitive URLs
Posted by GitBox <gi...@apache.org>.
adarrssh edited a comment on issue #713:
URL: https://github.com/apache/apisix-website/issues/713#issuecomment-1023090138
Hey @yzeng25, is this how we are supposed to add slug to each blogpost?
<img width="899" alt="image" src="https://user-images.githubusercontent.com/85433137/151345933-9d594201-7f0f-4b3c-92a9-d471394f478a.png">
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] mangoGoForward commented on issue #713: Need to modify case-sensitive URLs
Posted by GitBox <gi...@apache.org>.
mangoGoForward commented on issue #713:
URL: https://github.com/apache/apisix-website/issues/713#issuecomment-1050463407
Seems lower-case or upper-case both works well, but on https://apisix.apache.org/ reproduced easily.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] yzeng25 commented on issue #713: Need to modify case-sensitive URLs
Posted by GitBox <gi...@apache.org>.
yzeng25 commented on issue #713:
URL: https://github.com/apache/apisix-website/issues/713#issuecomment-1049786445
> I'd like to tackle it, may need your help, thanks. /assign
There you go. Have fun and keep updated timely. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] yzeng25 commented on issue #713: Need to modify case-sensitive URLs
Posted by GitBox <gi...@apache.org>.
yzeng25 commented on issue #713:
URL: https://github.com/apache/apisix-website/issues/713#issuecomment-989535566
After some researching, there are three ways that could solve this problem, but they all have certain limitations.
1. Use `slug` to customize he last part of the document URL, ref: https://docusaurus.io/docs/docs-introduction#document-id .
2. Rename files directly.
3. Use `plugin-client-redirects` to perform redirections., ref: https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-client-redirects
Expected Result:
1. Input the URLs with upper-case letters, it is accessible.
2. Input the URLs with lower-case letters, it is also accessible.
For Method 1, I tested it locally. The `slug` annotation works fine, but only 1 URL works. For example, the original suffix is `/why-we-need-Apache-APISIX`, and then use `slug` to modify it to `/why-we-need-apache-apisix`. Only the second one is accessible, the original one returns 404.
For Method 2, renaming files can definitely solve the problem. But we would have to find and update all of these links provided to external media, which is not an easy thing to do.
For Method 3, `plugin-client-redirects` requires manual maintenance and update.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] adarrssh commented on issue #713: Need to modify case-sensitive URLs
Posted by GitBox <gi...@apache.org>.
adarrssh commented on issue #713:
URL: https://github.com/apache/apisix-website/issues/713#issuecomment-1022205641
yes, I would like to work on this, please assign me this issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] juzhiyuan commented on issue #713: Need to modify case-sensitive URLs
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #713:
URL: https://github.com/apache/apisix-website/issues/713#issuecomment-989569360
- For future posts, we use slug property & lowercase URLs only;
- For the current posts, we could use plugins to redirect historical URLs to lowercase.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] juzhiyuan commented on issue #713: Need to modify case-sensitive URLs
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #713:
URL: https://github.com/apache/apisix-website/issues/713#issuecomment-989806522
🥰🥰
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] adarrssh commented on issue #713: Need to modify case-sensitive URLs
Posted by GitBox <gi...@apache.org>.
adarrssh commented on issue #713:
URL: https://github.com/apache/apisix-website/issues/713#issuecomment-1023090138
Hey @yzeng25, is this how we need to add slug to each blogpost?
<img width="899" alt="image" src="https://user-images.githubusercontent.com/85433137/151345933-9d594201-7f0f-4b3c-92a9-d471394f478a.png">
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org