So I created a Login button for my login page (MediaWiki:Loginreqpagetext):
Please $1 to view other pages.
{{Login Button|link=Special:UserLogin|name=Log in}}
Problem is my button link doesn't have the &returnto=Page+Title
part. So links to specific pages won't work if the user clicks the login button.
Is it possible to grab the URL parameter from the $1 variable? i.e. $1['url']
Or is there another way to dynamically add the "&returnto=" parameter into the link?
Thanks in advance for any help.