Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to properly redirect pages without trailing slash to pages with trailing slash.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jamie Starke  
View profile  
 More options Oct 14 2012, 12:19 pm
From: Jamie Starke <jrsta...@gmail.com>
Date: Sun, 14 Oct 2012 09:19:29 -0700 (PDT)
Local: Sun, Oct 14 2012 12:19 pm
Subject: How to properly redirect pages without trailing slash to pages with trailing slash.

I have sammy.js running in webapp, performing the routing functionality to
determine the state of the app based on the url. I'm currently trying to
redirect routes that are missing the trailing slash (for example
/#/stop/1/100032). I would like to redirect all such pages missing the
trailing slash, to the page with the trailing slash.

To complicate things, I would also like to have an error page in the case
that there is no such route.

This is what I have so far.

self.router = Sammy(function () {

    });

  So everything seems to work so far except for the redirecting of the
pages missing the trailing slash.  For some reason they just end up at the
error page

Any help would be greatly appreciated.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »