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

CDN not found because of path.join in Kuromoji.js #12

Open
qqpann opened this issue Jul 12, 2021 · 2 comments
Open

CDN not found because of path.join in Kuromoji.js #12

qqpann opened this issue Jul 12, 2021 · 2 comments

Comments

@qqpann
Copy link

qqpann commented Jul 12, 2021

https://nodejs.org/api/path.html#path_path_join_paths
https://github.com/takuyaa/kuromoji.js/blob/71ea8473bd119546977f22c61e4d52da28ac30a6/src/loader/DictionaryLoader.js#L51
After path.join, "https://" becomes "https:/" and causes 404 error in a browser.

In my use case, I use kuromojin in a web application and this results in "https://cdn.example.com/dict" to be "https://myapp.com/cdn.example.com/dict"and getTokenizer cannot find the dict files.

@qqpann
Copy link
Author

qqpann commented Jul 12, 2021

@azu
Copy link
Owner

azu commented Jul 12, 2021

takuyaa/kuromoji.js#37
This is kuromoji.js issue

@azu azu closed this as completed Jul 12, 2021
@azu azu reopened this Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants