navigateToURLによるページ画面に遷移する例 は以下です。
//Component: LightningNavigate
<aura:component implements="force:appHostable">
<div id="aura-page">
<div class="container">
<ui:button label="gotoURL" press="{!c.gotoURL}" />
</div>
<div class="container">
<ui:button label="navigate" press="{!c.navigate}" />
</div>
</div>
</aura:component>
//Controller
({
gotoURL : function(component, event, helper) {
helper.gotoURL(component);
},
navigate : function(component, event, helper) {
helper.navigate(component);
}
})
//Helper
({
gotoURL : function (component, event) {
var urlEvent = $A.get("e.force:navigateToURL");
urlEvent.setParams({
"url": "/006/o"
});
urlEvent.fire();
},
navigate : function(component,event) {
var address = '/Salesforce.com+Inc/@37.793779,-122.39448,17z/';
var urlEvent = $A.get("e.force:navigateToURL");
urlEvent.setParams({
"url": 'https://www.google.com/maps/place/' + address
});
urlEvent.fire();
}
})
//App
<aura:application >
<c:LightningNavigate />
</aura:application>