Open humitos opened 1 year ago
The valid URL for this case is
https://docs.readthedocs.io/_/static/javascript/readthedocs-doc-embed.js
. Note that it does not include/en/stable/
I suppose the URL injected by Read the Docs may be relative and that's why it's not working...
I checked for this in the source code and I found the following:
Executing that on docs
project:
In [2]: p = Project.objects.get(slug='docs')
In [4]: p.proxied_static_path
Out[4]: '/_/static/'
So, the final URL would be /_/static/javascript/readthedocs-doc-embed.js
. That URL should be skipped by the extension, in theory, due to this code we added before: https://github.com/rtfd/sphinx-notfound-page/blob/6f01c89834f21643836ce40cbcb4e017152dd757/notfound/extension.py#L100-L102
If you go to https://docs.readthedocs.io/en/stable/notfound and open the Javascript console you will see that the file
https://docs.readthedocs.io/en/stable/_/static/javascript/readthedocs-doc-embed.js
returned 404. For some reason, this URL is being changed when it should not.The valid URL for this case is
https://docs.readthedocs.io/_/static/javascript/readthedocs-doc-embed.js
. Note that it does not include/en/stable/
Related to #200 Related to #206