%~get_cgi_value('from_url')%> <%~get_cgi_value('from')%> <% if $cgi_from_url%> <%~set url_str = $cgi_from_url%> <% elsif $url and not $cgi_from%> <%~set url_str = $url%> <% else %> <%if $cgi_from eq 'racecalendar'%> <% set url_str = "http://calendar.slowtwitch.com/" %> <%elsif $cgi_from eq 'retailers'%> <% set url_str = "http://www.slowtwitch.com/retailers" %> <%elsif $cgi_from eq 'triclubs'%> <% set url_str = "http://www.slowtwitch.com/triclubs" %> <%elsif $cgi_from eq 'runshops'%> <% set url_str = "http://www.slowtwitch.com/runshops" %> <%elsif $cgi_from eq 'coaches'%> <% set url_str = "http://www.slowtwitch.com/coaches" %> <%elsif $cgi_from eq 'fitters'%> <% set url_str = "http://www.slowtwitch.com/fitters" %> <%elsif $cgi_from eq 'survey'%> <% set url_str = "http://forum.slowtwitch.com/survey/?from=gforum" %> <%elsif $cgi_from eq 'training'%> <% set url_str = "http://training.slowtwitch.com/?from=gforum" %> <%elsif $cgi_from eq 'protri'%> <% set url_str = "http://www.slowtwitch.com/protri/?from=gforum" %> <%elsif $cgi_from eq 'stackreach'%> <% set url_str = "http://www.slowtwitch.com/stackreach/index.php?from=gforum" %> <%elsif $from and $from ne '' and not $from contains 'do=logout' %> <% set url_str = $$from %> <%else%> <%set self_url = get_self_url() %> <%if self_url and not self_url contains 'do=login' and not self_url contains 'do=logout'%> <% set url_str = $self_url %> <%else%> <%set url_str = GForum::SEO::url(forum => 1) %> <%endif%> <%endif%> <%endif%>