On 27-05-16 12:28, Koen Deforche wrote:

We cannot reproduce the '/?' issue. Can you reproduce this misbehaviour
in a small test case?

Hey Koen,

please find attached a minimal testcase. I'm seeing the same behaviour for WMenuItems (not in this testcase).

Cheers,

Rutger


#include <Wt/WApplication>
#include <Wt/WAnchor>
#include <Wt/WLink>

struct application: Wt::WApplication {
    application( const Wt::WEnvironment& env ):
        Wt::WApplication( env ),
        //anchor_(  "/", "Hello", root() )            // clean URL
        //anchor_(  Wt::WLink( "/" ), "Hello", root() )  // clean URL
        anchor_(  Wt::WLink( Wt::WLink::InternalPath, "/" ), "Hello", root() )  // Gives /?
        //anchor_(  Wt::WLink( Wt::WLink::InternalPath, "" ), "Hello", root() )  // Gives /?
    {
    }

    Wt::WAnchor anchor_;
};


Wt::WApplication *construct_app( const Wt::WEnvironment& env )
{
    return new application( env );
}


int main( int argc, char** argv )
{
    return Wt::WRun( argc, argv, &construct_app );
}
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to