I am attempting to display a message when the last segment equals "success"... I've done this many times before and for some reason I am having some trouble. I need an extra eye perhaps?
Below is my code. The url upon submission redirects and looks like this: http://site.dev/events/event_submission/success/
However, the third segment isn't being read by EE because {last_segment} equals "event_submission" and {segment_3} parses blank.
{exp:switchee variable="global:member_group" parse_tags="yes" parse="inward"}
{case value="1"}
{if last_segment == 'success'}
Your event has been submitted. You will receive notification when your event has been approved or rejected. You can <a href="{path=logout}">logout</a> now or <a href="{site_url}events/event_submission">click here</a> to create another event.
{if:else}
{exp:channel:form channel="events_submitted" id="publishForm" return="events/event_submission/success" json="yes" include_jquery="no"}
"Just to test: {last_segment} {segment_3}"
<p>Welcome back, <strong>{screen_name}</strong>!</p>
I am sure I am just having a coding block but I cannot get it going... any tips?