搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Can't open a local file because file handling removes colon from the file path.

  • 1 回覆
  • 1 有這個問題
  • 52 次檢視
  • 最近回覆由 zeroknight

more options

Hi, I have a link in my website that opens a file in another desktop program. The link looks like this: openwith://C:/path/to/file, but after update to the latest Firefox version (v122.0) the second colon from the link is for some reason removed, resulting in a path like this: openwith://C/path/to/file. This is a problem because the path it now tries to open doesn't exist. Is this a deliberate feature in the new Firefox version or is it a bug? If it is a bug will it be fixed? It still works fine in v121.0.

Hi, I have a link in my website that opens a file in another desktop program. The link looks like this: openwith://C:/path/to/file, but after update to the latest Firefox version (v122.0) the second colon from the link is for some reason removed, resulting in a path like this: openwith://C/path/to/file. This is a problem because the path it now tries to open doesn't exist. Is this a deliberate feature in the new Firefox version or is it a bug? If it is a bug will it be fixed? It still works fine in v121.0.

被選擇的解決方法

Links with the format openwith://url need to be changed to openwith:url without the two forward slashes ("//") and Chrome will soon be the same (Bug 1876729).

You can revert this by changing network.url.useDefaultURI to false in about:config then restart the browser.

From the release notes:

The fallback URL parser for unknown schemes was changed to DefaultURI, this improves specification adherence and web compatibility.
從原來的回覆中察看解決方案 👍 1

所有回覆 (1)

more options

選擇的解決方法

Links with the format openwith://url need to be changed to openwith:url without the two forward slashes ("//") and Chrome will soon be the same (Bug 1876729).

You can revert this by changing network.url.useDefaultURI to false in about:config then restart the browser.

From the release notes:

The fallback URL parser for unknown schemes was changed to DefaultURI, this improves specification adherence and web compatibility.

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題