Changing the "homepage" url for logged-in users I know I can set  postLoginRedirect in config/general.php to send the user to a specific page after login. Is there a way to grab that value in the template? This came up because I noticed that the {{siteUrl}} href in the default _layout.html template was sending the user to the homepage (index.html), but I'd like to conditionally replace that link for a logged-in user.
Sure, something like this should work (untested):

&lt;a href="{{ currentUser ? url(craft.config.get('postLoginRedirect')) : siteUrl }}"&gt;Home&lt;/a&gt;


The above should create an absolute URL to whatever's in your postLoginRedirect config setting, relative to your siteUrl.

Note that if you want an URL relative to your Control Panel (e.g. "dashboard"), you'll want to use cpUrl() instead, i.e.

&lt;a href="{{ currentUser ? cpUrl(craft.config.get('postLoginRedirect')) : siteUrl }}"&gt;Home&lt;/a&gt;