X
Tap here to go to the mobile version of the site.

Support Forum

Firefox doesn't recognize file://~?

sw
Posted

When I type / in the address bar Firefox immediately realizes that it's a local path and suggests file:///. But neither ~ nor file://~ points to my home directory. I hope Firefox will recognize ~ and save me from typing /home/my_username in the address bar myself.

When I type / in the address bar Firefox immediately realizes that it's a local path and suggests file:///. But neither ~ nor file://~ points to my home directory. I hope Firefox will recognize ~ and save me from typing /home/my_username in the address bar myself.

Modified by sw

Chosen solution

Hi, Firefox is actually governed by standards here, and they explicitly call out that `~` expansion isn't supported in file:// URIs:

https://tools.ietf.org/html/rfc8089#appendix-D.1

Unfortunately, I doubt there is much that can be done about that - it isn't a common feature across all operating systems, which is probably why the RFC has specified it in that manner.

Read this answer in context 1
Quote

Additional System Details

Application

  • User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0

More Information

Standard8 35 solutions 196 answers

Chosen Solution

Hi, Firefox is actually governed by standards here, and they explicitly call out that `~` expansion isn't supported in file:// URIs:

https://tools.ietf.org/html/rfc8089#appendix-D.1

Unfortunately, I doubt there is much that can be done about that - it isn't a common feature across all operating systems, which is probably why the RFC has specified it in that manner.

Hi, Firefox is actually governed by standards here, and they explicitly call out that `~` expansion isn't supported in file:// URIs: https://tools.ietf.org/html/rfc8089#appendix-D.1 Unfortunately, I doubt there is much that can be done about that - it isn't a common feature across all operating systems, which is probably why the RFC has specified it in that manner.
Was this helpful to you? 1
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17530 solutions 158508 answers

Helpful Reply

A possible workaround is to use a keyword (fh) bookmark that adds the file path.

  • file:////home/my_username/%s
A possible workaround is to use a keyword (fh) bookmark that adds the file path. *file:////home/my_username/%s
Was this helpful to you? 1
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.