Howdy, I created a user macro that can act as a navigation tile. The end user can search for a Confluence page or use a URL.
Upon testing, a URL works, and so does a link to a page within the current space. Pages outside of the space do not seem to function.
The param:
## @param TileLink:title=Tile Link URL|type=confluence-content|desc=Link for tile|desc=Search for a Confluence page or paste the full URL path - must include http...
The code to utilize it:
<ac:structured-macro ac:name="html" ac:schema-version="1" >
<ac:plain-text-body>
<![CDATA[<script>
$( "#$!paramTileID" ).click(function() {
window.open("$!paramTileLink");
});
</script>]]>
</ac:plain-text-body>
</ac:structured-macro>
When looking at what the TileLink param contains for other spaces it shows <spacekey>:<pagename>. Any ideas how I can link to other pages outside of the current space?
Many thanks!