We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b6150d commit a6c5666Copy full SHA for a6c5666
src/pages/MyPage/UserContainer.js
@@ -85,13 +85,13 @@ const ButtonContainer = styled.div`
85
// URL 을 parsing 해서 현재 typepage 인지 아닌지 판단
86
// 원시적인 방법이라 추후 다른 방법 대체 필요
87
function isTypePage(url) {
88
- if (url.startsWith("/python/") && url.length >= 9) {
+ if ((url.startsWith("/python/") || url.startsWith("/Python/")) && url.length >= 9) {
89
return true;
90
}
91
- if (url.startsWith("/html/") && url.length >= 7) {
+ if ((url.startsWith("/html/") || url.startsWith("/Html/")) && url.length >= 7) {
92
93
94
- if (url.startsWith("/c/") && url.length >= 4) {
+ if ((url.startsWith("/c/") || url.startsWith("/C/")) && url.length >= 4) {
95
96
97
return false;
0 commit comments