Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.

SEO urls path defaulting to / #27

Closed
castles opened this issue Sep 8, 2011 · 0 comments
Closed

SEO urls path defaulting to / #27

castles opened this issue Sep 8, 2011 · 0 comments

Comments

@castles
Copy link

castles commented Sep 8, 2011

I'm using mod_rewrite for clean urls and I discovered that the path for http://domain.com/test is different from http://domain.com/test/ it might be worth adding to the documentation as its messed me around a bit.

My solution was to manually specify the path..

var p = document.location.pathname;
p = ( p.indexOf('/',1) == -1 ? p : path.substring(0, p.lastIndexOf('/')+1) );
$('test','var',{path:p});

@carhartl carhartl closed this as completed Nov 2, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants