Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Routing issues after 9.10 upgrade

Routing issues after 9.10 upgrade

Arnór Halldórsson
Arnór Halldórsson
Reply

Hello comrades,

After upgrading one of our solutions to 9.10 we noticed that routing went haywire for root pages, all root page urls return the frontpage, these are the settings we're using:

Website settings:

Settings -> Web and HTTP -> Customized URLs

 

Best regards,

ArnĂ³r


Replies

 
Olga Shedko Dynamicweb Employee
Olga Shedko
Reply

Hello Arnor,

I cannot reproduce this issue only with described settings. It would be better if you could provide additional information:

1. Specify your current solution's URL if possible.

OR

2. I need some additionl screenshots (or video) of another settings. Probably there is something in your Settings/Web&HTTP/Redirects that causes issue (I've checked your previously used site https://byko.is/, and see that there is not a simple structure here). Or maybe there is something in your page properties.

3. Also please record the video how it acts in a frontend.

Thank you.

Best regards,

Olga | QA

 
Natan Ólafsson
Natan Ólafsson
Reply
This post has been marked as an answer

The issue was our custom API catching all routing and marking as "Handled = true".


The highlighted code above was always true, we fixed it by changing the code to.

Before: routeData.RouteHandler.ToString() != "Dynamicweb.Frontend.DynamicwebRouteHandler"
After:  ​routeData.RouteHandler.ToString() == "System.Web.Mvc.MvcRouteHandler"

Is there a better way to determine what routes to mark as handled? That is more future proof?

Regards
Natan

Votes for this answer: 2

 

You must be logged in to post in the forum