No, I’m just using version 1.02 of the original plugin. I also tried version 1.00. I believe the problem maybe that the plugin is pulling the details from EE itself and not the $_SERVER . I don’t know. But the fact that I’m stripping out the index.php everywhere else in EE and the addition of the / is reflected in the url, at the base level. I even went into PHP and just added the line
<?php global $IN; echo $IN->URI; ?>
and the adjustments are reflected there as well.
I’ve currently just switched to
<?php echo $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ?>
but am trying to figure out how to store as a variable or something shorter so I can build the url from that.
Ah I see what you mean now. You are indeed right that the plugin creates the URL using built-in ExpressionEngine code methods. I didn’t want to use server variables as I wasn’t too well versed with them when I wrote the plugin so just went with the built-in functions instead.
Saying that though you can very easily create a current URL by doing something like this though :
{homepage}{segment_1}/{segment_2}/{segment_3}/{segment_4}/{segment_5}/{segment_6}/{segment_7}/{segment_8}/{segment_9}
That should hopefully get you what you need?
Best wishes,
Mark
I’m definitely not a hardcore coder by any means, but it turns out i’m pretty good at modyfing! I compared this plug-in to an EE2.0 plug-in and attempted to make some tweaks to make it work with EE2.0.. and much to my surprise it worked!
I’m not sure if i’m allowed to post the altered file / whether you plan to do it yourself Mark?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.