URL mapping/interpretation

Aug 10, 2009 at 5:31 PM
Edited Aug 10, 2009 at 5:31 PM

Greetings -

I'm stumped by an issue which seems to stem from my lack of understanding on how Umbraco maps URLs.

I'm working with the C4U Catalog control, adding a bit more functionality (like paging), and I end up using the field "thisLink" which is internally formatted as:

thisLink = Page.ResolveUrl("~/catalog/" + CategoryName + ".aspx");

This is not found, as the URL apparently doesn't map to the Catalog.ascx control using "catalog" in the path like that, however a link like ".../catalog.aspx?c=<mycatagory>" does.

How do I go about understanding what is going on here so I can fix it?



Aug 10, 2009 at 5:52 PM

thisLink is simply an SEO and human friendly way of creating the link String and assumes that you have a URLRewriting rule like:

        ignoreCase="true" />

Which you should if you installed the package.  All this does is rewrtite the query string paramater "c" to a friendly format.  I don't belive that you'll need to fix anything, unless you'd like to use the *.aspx?c=xxxxx format instead.





Aug 10, 2009 at 9:55 PM

That's what I was looking for... Thanks, Paul!