I think this is by design and how Bash handles the present working directory.
Compare the outputs of:
(The latter displays the physical current working directory instead of the symlinked one. Pwd manual.)
You can make Bash to always use the physical working directory by using:
The manual states:
-P If set, the shell does not follow symbolic links when executing commands such as cd that change the current working
directory. It uses the physical directory structure instead. By
default, bash follows the logical chain of directories when
performing commands which change the current directory.
As a side effect, when you
cd /path/to/foo, your
pwd will be: