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

Relative URLs in pub-manifest are not resolved properly when the pub-manifest is linked from HTML elsewhere #661

Closed
MurakamiShinyu opened this issue Sep 28, 2020 · 0 comments
Labels

Comments

@MurakamiShinyu
Copy link
Member

HTML内の pub-manifest へのリンク <link rel="publication" href="..."> で別のディレクトリあるいは別のサイトの pub-manifest を指定しているとき、pub-manifest 内からコンテンツのHTMLへのリンクの相対URLが正しく解決されず、

Error: Failed to fetch a source document from artifacts/content/index.html (404 Not Found)

のようなエラーになります。


Test with the version the bug is found:
https://vivliostyle.github.io/viewer/v2.1.1/#src=data:text/html,%3Chtml%3E%3Clink%20rel=%22publication%22%20href=%22https://vivliostyle.github.io/vivliostyle_doc/ja/vivliostyle-user-group-vol4/manifest.json%22%3E%3C/html%3E&bookMode=true

Test with the latest canary version:
https://vivliostyle.now.sh/#src=data:text/html,%3Chtml%3E%3Clink%20rel=%22publication%22%20href=%22https://vivliostyle.github.io/vivliostyle_doc/ja/vivliostyle-user-group-vol4/manifest.json%22%3E%3C/html%3E&bookMode=true

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

1 participant