Developer forum

Forum » Development » ajax on frontpage with user defined URL's

ajax on frontpage with user defined URL's


Reply
 Hello.

I have strange problem with the DW user defined URL.

I have a module, witch uses Ajax to get content. This modules works fine on alle pages except one and that’s the frontpage. The strange thing is that it works fine on domain.com/Frontpage.aspx But it doesn’t on domain.com (witch offcource is the same page)

If I debug the JS code to see exactly what link I try to load with ajax – The link is correct in both scenarios.  “Domain.com/Frontpage.aspx?ajax=true&ajaxGet=this” and “domain.com/?ajax=true&ajaxGet=this”

But if use a HTTP debugger like Fiddler the link changes in the domain.com situation to domain.com/Frontpage.aspx?ajaxGet=this

If I set the URL Type to standard in DW it works fine in both cases. Therefor I guess the url rewriter, rewrites my url just after the request is sent. And in my situation it removes my first query string parameter.

It would be fairly easy to hack this – just add a dummy query string to the URL, but I’m more interested in why DW behaves in this way.

Any ideas?


Replies

 
Nicolai Høeg Pedersen
Reply
It is because of some settings in the SEO section in management center or because of primary domain.

You really should always use the format Default.aspx?ID=XX in things like this...

 

You must be logged in to post in the forum