I tried your solution but the resulting link is odd. It works, but it is not the same as for the menu items.
For example, my menu item has the following link property:
i.e., this menu item displays a single article - the one with id 77.
The link on menu items looks like this:
where "article-alias" is the alias of the article.
The link obtained from calling
echo JRoute::_('index.php?option=com_content&view=article&id=77', false);
however looks like this:
where "cur-page" is the name of the page I am currently on. So, when I am currently on the article "foobar", i.e. my current url is "http://localhost/joomla-dev/index.php/de/foobar", then the resulting link is
How can I fix this and receive the link with the alias rather than that odd id?