Quick question...
i am making use of internalPathChanged to identify when someone
comes in from an unusual path however it appears to be called twice i.e.
http://0.0.0.0:8080/#/cheese/
[2008-Dec-01 12:38:07.623266] 8498 [/ d5dwPDyL5BzmMD1h] [path] "/cheese"
[2008-Dec-01 12:38:07.654451] 8498 [/ d5dwPDyL5BzmMD1h] [path] "/cheese/"
The log is generated from calling:
log("path") << internalPath();
within the function connected to internalPathChanged. Now ignoring this
is trivial... i currently just do:
if (!boost::iends_with(internalPath(), "/"))
return;
which ignores all path changes that don't end in a slash, however this
seems a little bit dirty plus without understanding the mechanism which
causes it i can't be confident that the solution is a valid one...
Don't suppose you could detail why it happens and if it is a bug?
Cheers
roja
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest