Back link from Photo View returns to default view

Home Forums Calendar Products Events Calendar PRO Back link from Photo View returns to default view

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1006738
    Mad Dog
    Participant

    My events page is set up so List is the default view. When I switch to Photo View and click on a Title,I go to the “Detail” page. But the “Back link” (« All Courses & Workshops) takes me to the /events page but in the default List View. How can I get it to return to Photo View?

    This is the code on single-event.php:

    <p class="tribe-events-back">
    		<a href="<?php echo esc_url( tribe_get_events_link() ); ?>"> <?php printf( __( '&laquo; All %s', 'the-events-calendar' ), $events_label_plural ); ?></a>
    	</p>
    

    I can manually add /photos/ but it doesn’t seem like I should have to. (Note: I’m not using the “Detail” page for List View so hardcoding is an option, it just doesn’t feel like I should need to).

    Thanks,
    Mad Dog

    #1007049
    Brian
    Member

    Hi,

    Thanks for using our plugins.

    If you have the list view and as your default the All Events link will always take you back to the default view.

    It does not have a way to determine where you came from and send you back to that view.

    So you will have to add /photo/ if you always want to send people back to the photo view and it is not the default view.

    Let me know if you have any follow up questions.

    Thanks

    #1007096
    Mad Dog
    Participant

    Kind of an odd behavior from a user standpoint. If I view a detail page and hit a “Go Back” type link I would expect to return to the page I was just at. Even adding /photo/ isn’t good because it takes you back to the First Photos page, not the one you may have come from.

    I changed it to <a href="#" onClick="history.go(-1);return true;"> which I think makes much more sense!

    Thanks

    #1007264
    Brian
    Member

    It could be odd, but it is not something brought up all the time. I will be on the look out to see if it could be improved. Thanks for your feedback.

    Glad you found a way that works for you.

    Since this is marked resolved I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic on the forum and we can help you out.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Back link from Photo View returns to default view’ is closed to new replies.