curl.js depth issue?

8 views
Skip to first unread message

Adam Jorgensen

unread,
Feb 3, 2015, 5:15:14 AM2/3/15
to cuj...@googlegroups.com
Hey guys, I've been using curl.js on my site and have just run into something very weird.

I have a page with a route of the form:

/A/B/C/

The page that maps to uses curl to load some modules like:

X/Y/Z

and so one, which results in GET requests like:

/static/js/X/Y/Z.js

and so on. This is working fine.


I now need to add a variant on the /A/B/C/ route that is of the form /A/B/C/D/E/
It still maps to the same page visually as /A/B/C/ but provides some extra details for an on-load action.
The problem is that when the page loads and requests modules like X/Y/Z the GET requests end up looking like:

/static/js/X/Y/Z.js/


Due to the trailing slash, curl is failing to load the modules and the page breaks.The really weird part is that all I've done
at this point is simply enable to extra route on the server-side. I'm not actually using the D and E route components for 
anything at all (Not even storing their values).

Has anyone encountered this before? 
Reply all
Reply to author
Forward
0 new messages