jquery-navigate icon indicating copy to clipboard operation
jquery-navigate copied to clipboard

Always use full path

Open aronduby opened this issue 10 years ago • 3 comments

I almost love this plugin, but have one major issue of it ignoring the path. Here's a small snippet of one portion of my urls:

/data/about /data/community-profile /data/indicators /data/indicators/50-more-urls

Let's say I land on data/about, any link to the other pages drops the data portion, so data/indicators becomes indicators and rightfully gives the 404 page. The items with 3 (or more) all drop off just the first portion, so data/indicators/50-more-urls becomes indicators/50-ore-urls

aronduby avatar Oct 02 '15 19:10 aronduby

hello, well the code that annoy you seems to be on lines 416-417 on the plugin, maybe just try to comment those lines and see if you're good with it. But then i don't understand because to go from /data/about to /data/indicators , this is indeed a relative "indicators" link or no ?

well in any case just try to do the above to try if that's enough, otherwise maybe end your urls by a slash but i know this is annoying. Keep me up to date of your pb. cheers

binarymind avatar Oct 04 '15 12:10 binarymind

any new ? if not closing the issue soon

binarymind avatar Oct 10 '15 11:10 binarymind

i use this code under

in my index-file.. my rootfolder for my projekt is MyProject (Full patch to the root folder of the website...

Not the best solutions, but it works for me whit Friendly URL....

Exemple for my projekt:

http://localhost/MyProject/ = index.php - (if empty, page=Start) http://localhost/MyProject/Start = index.php?page=Start - (still Start.. ) http://localhost/MyProject/Start/November = index.php?page=Start&m=November http://localhost/MyProject/Start/November/05 = index.php?page=Start&m=November&today=05

And then i can get dom from an arrya, like:

To get Start = $path_info['call_parts'][0] To get November = $path_info['call_parts'][1] To get day (05) = $path_info['call_parts'][2]

Hope this help you something :)

Thomas89 avatar Nov 05 '15 08:11 Thomas89