I found this block of code in the Salesforce docs:
<apex:page>
<h1>Linked</h1>
<apex:outputLink value="{!$Page.otherPage}">
This is a link to another page.
</apex:outputLink>
</apex:page>
I'm unfamiliar with the !Page global variable.
Could someone tell me how exactly I could assign otherPage a value?
The URL I want to pass into otherPage can change and is accessed through my Controller, so I can't just attach the name of my page to it.
I need to assign a variable and update it when the page loads.