Skip to content

Conversation

@Math-ias
Copy link
Contributor

@Math-ias Math-ias commented Nov 23, 2024

If we detect scaladocs are being served locally
(i.e page on the "file" protocol)
then we let the link click event go back to normal handling.

Otherwise unless a user has allowed pages on the file protocol to access other files
https://github.com/chromium/chromium/blob/b6c23ba2056e65081f8a5bcbf73b176baaa42645/content/public/common/content_switches.cc#L15 for example with the allow-file-access-from-files flag in chrome then SPA routing won't work.

Fixes #19208.

If we detect scaladocs are being served locally
(i.e page on the "file" protocol)
then we let the link click event go back to normal handling.

Otherwise unless a user has allowed pages on the file protocol
to access other files
https://github.com/chromium/chromium/blob/b6c23ba2056e65081f8a5bcbf73b176baaa42645/content/public/common/content_switches.cc#L15
for example with the allow-file-access-from-files flag in chrome
then SPA routing won't work.
@Math-ias Math-ias changed the title [ISSUE-19208] If scaladocs on file protocol don't do SPA routing. [ISSUE-#19208] If scaladocs on file protocol don't do SPA routing. Nov 23, 2024
@Gedochao Gedochao requested a review from Florian3k November 26, 2024 08:05
@Gedochao Gedochao merged commit 75ddad2 into scala:main Nov 26, 2024
29 checks passed
KacperFKorban pushed a commit to dotty-staging/dotty that referenced this pull request Nov 29, 2024
…g. (scala#22013)

If we detect scaladocs are being served locally
(i.e page on the "file" protocol)
then we let the link click event go back to normal handling.

Otherwise unless a user has allowed pages on the file protocol to access
other files

https://github.com/chromium/chromium/blob/b6c23ba2056e65081f8a5bcbf73b176baaa42645/content/public/common/content_switches.cc#L15
for example with the allow-file-access-from-files flag in chrome then
SPA routing won't work.

Fixes scala#19208.
tgodzik pushed a commit to scala/scala3-lts that referenced this pull request Mar 11, 2025
…g. (scala#22013)

If we detect scaladocs are being served locally
(i.e page on the "file" protocol)
then we let the link click event go back to normal handling.

Otherwise unless a user has allowed pages on the file protocol to access
other files

https://github.com/chromium/chromium/blob/b6c23ba2056e65081f8a5bcbf73b176baaa42645/content/public/common/content_switches.cc#L15
for example with the allow-file-access-from-files flag in chrome then
SPA routing won't work.

Fixes scala#19208.
[Cherry-picked 75ddad2]
tgodzik pushed a commit to scala/scala3-lts that referenced this pull request Mar 11, 2025
…g. (scala#22013)

If we detect scaladocs are being served locally
(i.e page on the "file" protocol)
then we let the link click event go back to normal handling.

Otherwise unless a user has allowed pages on the file protocol to access
other files

https://github.com/chromium/chromium/blob/b6c23ba2056e65081f8a5bcbf73b176baaa42645/content/public/common/content_switches.cc#L15
for example with the allow-file-access-from-files flag in chrome then
SPA routing won't work.

Fixes scala#19208.
[Cherry-picked 75ddad2]
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

Successfully merging this pull request may close these issues.

Scaladoc generates broken local links

3 participants