I installed a fresh D6 installation with just the essentials for this module to work.
Everything works beautiful when I leave the base URL blank, and it forwards to the home page appending the /#/..., but when I add a base URL, it breaks... For example:
If I create a page with the URL "/flash", and set that URL to be the base, I get a 404 error when looking for the swf-optimizer.js file:
NetworkError: 404 Not Found - http://2.black.box.biz/sites/all/modules/swfaddress/flash/swfaddress-2.4/js/swfaddress-optimizer.js?swfaddress=about&base=%2Fflash&flash=9.0.0&?j
You can see above in bold that it adds the base path to the swfaddress-optimizer.js file path. ( swfaddress.module:211 @ the _swfaddress_optimizer function returns a URL with the $base in it... ) Why would this be the case when the swfaddress-optimizer.js file is always in the swfaddress module directory?
So then I removed the $base from the _swfaddress_optimizer() return path and it works, but now it makes the SWFAddress' path the same as the base path. For example, if I go to /about, SWFAddress should forward to /flash/#/about, but instead it forwards to /flash/#/flash/
NOTE: I'm using a double subdomain for my drupal 6. http://2.black.box.biz/ is the
/blackbox2 directory... I doubt it, but not sure if this could be causing the problem.
Thanks!
-Joe
Comments
Comment #1
Josephnewyork commentedHas anyone got the base path to work? I know SWFAddress for D6 is in dev, so please excuse me if it isn't suppose to work as its under construction. But I'd like to know as I am willing to contribute to get it working.
On that note... the problem is that when there is a $base URL, the $path become the $base because the init function doesn't know if swfAddress has forwarded it or not, and when it generates the $path, it gets it from the URI. I created a wordpress version of this module a few years back, and I used sessions to pass the data instead of extracting it from the URI.
Comment #2
sashainparisIs this a duplicate from this feature request?
http://drupal.org/node/647728
Alexandre