{"action":"created","issue":{"url":"https://api.github.com/repos/contao/core/issues/7682","labels_url":"https://api.github.com/repos/contao/core/issues/7682/labels{/name}","comments_url":"https://api.github.com/repos/contao/core/issues/7682/comments","events_url":"https://api.github.com/repos/contao/core/issues/7682/events","html_url":"https://github.com/contao/core/issues/7682","id":60794856,"number":7682,"title":"[3.2.16] generate a dynamic link with recursive insert tags on frontpage not working","user":{"login":"bezin","id":4400435,"avatar_url":"https://avatars.githubusercontent.com/u/4400435?v=3","gravatar_id":"","url":"https://api.github.com/users/bezin","html_url":"https://github.com/bezin","followers_url":"https://api.github.com/users/bezin/followers","following_url":"https://api.github.com/users/bezin/following{/other_user}","gists_url":"https://api.github.com/users/bezin/gists{/gist_id}","starred_url":"https://api.github.com/users/bezin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bezin/subscriptions","organizations_url":"https://api.github.com/users/bezin/orgs","repos_url":"https://api.github.com/users/bezin/repos","events_url":"https://api.github.com/users/bezin/events{/privacy}","received_events_url":"https://api.github.com/users/bezin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-12T09:59:47Z","updated_at":"2015-03-20T10:00:51Z","closed_at":null,"body":"Hei there, \r\n\r\nI found unexpected behaviour while using the following recursive insert tag {{link_url::{{page::id}}}} and would like to discuss it. I expect it to return the url of the current page, so that I can use it within an anchor element href attribute. It works like a charme on every subpage in my local installation, but not on the frontpage (alias=index). \r\n\r\n[In cause you are wondering why I need a link to the current page: I have a page where I use the History-API to browse within a div, that slides in from aside. I need the url of the actual page the user is on, to trigger closing the div again, when the user uses the back and forward buttons of the browser.] \r\n\r\nYou can't really reproduce the issue on the demo page, because it adds the language to the url and that behaviour can't be turned off. But do the following:\r\n\r\n1. Create a custom html element on any article on the demo frontpage\r\n2. Insert {{link_url::{{page::id}}}}\r\n3. Go to frontend: you'll see the output 'en/'\r\n\r\nThis is fine so far. But if you have a mono-lingual page like I have in my local installation, this insert tag returns ''. Shouldn't it return '/' instead? The way it is it can't be used for its intended purpose.\r\n\r\nLooking forward to your opinions. \r\n\r\nCheers"},"comment":{"url":"https://api.github.com/repos/contao/core/issues/comments/83971840","html_url":"https://github.com/contao/core/issues/7682#issuecomment-83971840","issue_url":"https://api.github.com/repos/contao/core/issues/7682","id":83971840,"user":{"login":"bezin","id":4400435,"avatar_url":"https://avatars.githubusercontent.com/u/4400435?v=3","gravatar_id":"","url":"https://api.github.com/users/bezin","html_url":"https://github.com/bezin","followers_url":"https://api.github.com/users/bezin/followers","following_url":"https://api.github.com/users/bezin/following{/other_user}","gists_url":"https://api.github.com/users/bezin/gists{/gist_id}","starred_url":"https://api.github.com/users/bezin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bezin/subscriptions","organizations_url":"https://api.github.com/users/bezin/orgs","repos_url":"https://api.github.com/users/bezin/repos","events_url":"https://api.github.com/users/bezin/events{/privacy}","received_events_url":"https://api.github.com/users/bezin/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T10:00:51Z","updated_at":"2015-03-20T10:00:51Z","body":"Maybe a more generalized statement:\r\nWhen I use {{link_url::2}} to generate a link to my index page (id 2, alias 'index'), it returns no href. \r\nIt looks like it is no issue with the recursive insert tags, but a bug with the link_url insert tag in general. "}}