Skip to content
This repository has been archived by the owner on Jan 25, 2020. It is now read-only.

Route dont Match #59

Closed
Dexus opened this issue Nov 2, 2014 · 1 comment
Closed

Route dont Match #59

Dexus opened this issue Nov 2, 2014 · 1 comment

Comments

@Dexus
Copy link

Dexus commented Nov 2, 2014

// Zertifikat Hersteller List
    router({  
        path:   '/' + language + '/' + gettext('url_path1') + '/' + gettext('url_Brands'),
        name:   language + 'Brands'
    }, function(req, res) {

        res.json({hello:'Brands'});
        res.end();

    });

    // Zertifikat Hersteller Detail
    router({  
        path:   '/' + language + '/' + gettext('url_path1') + '/' + gettext('url_Brands') + '/:company',
        name:   language + 'BrandsCompany'
    }, function(req, res) {

        res.json({hello:'BrandsCompany', brand: req.params.company});
        res.end();

    });

i can create the url in the template, but i cant get the URL to process i get only 404 errors, but other urls in the same file looks like the same and work... i dont now what is wrong?

If needed i can give private access to website and source file of the route file

@Dexus
Copy link
Author

Dexus commented Nov 2, 2014

Okay, looks like an encoding failure

@Dexus Dexus closed this as completed Nov 2, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant