> Olaf Radicke <[email protected]> hat am 5. Oktober 2013 um 09:36 > geschrieben: [...] > But what we can do is, counting the "/" in the tnt::HttpRequest::getUrl() > an generating a relative path like this - for example: > > <a href="../../../../../dir/subdir/subsubdir/subsubsubdir/targetComponent"> > > So no more handling with domain, port and protocol, but no static const char > too.
Okay, now I added a new method and renamed getLinkTo() to getAbsolutURL(). getLinkTo() get back now a relativ path. More details: https://github.com/OlafRadicke/peruschim_cpp/blob/feature_trustet_user/src/RouteReverse/manager/Manager.cpp https://github.com/OlafRadicke/tntnet_the_book/blob/master/markdown/de/210_reverserouteing.markdown Gratings, Olaf ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
