Project

General

Profile

internalPathNextPart "/category" vs. "/category/"

Added by Daniel Walter over 13 years ago

Hi,

i am starting a new session with a url like this:

http://localhost:8080/project#/category/nature/animals

The following code will not print something. I expected to see "/nature/animals" or similar.

if(app->internalPathMatches("/category"))
    std::cout << app->internalPathNextPart("/category") << std::endl;

If i call internalPathNextPart function with /category/ as parameter, i will get nature/animals.

I dont really understand the difference between the two parameters.

Why this happens?

Best regards,

Daniel Walter