Developer forum

Forum » Development » Slow after anchortags links

Slow after anchortags links

Rasmus Andersen
Reply

Hi Dynamicweb,

When using debug=true, I get this line:


In other solutions we are not seeing any high numbers with the "After anchortags links" step.

Any insights into what this is, and how I can prevent this from taking 161ms?

Best regards
Rasmus


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Rasmus,

It is an old feature that parses all links before the final output.

It will replace a link like <a href="#something">Go to something</a> with <a href="Default.aspx?ID=123#something">Go to something</a> - where Default.aspx?ID=123 is the link to the current page.

I'm not sure what the purpose of this replacement was, but it is now deprecated and disabled by default.

Upgrade to 9.3.11 or later and the problem should go away.

Best regards,
Morten

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

On older installations you should make sure that you have disabled this parsing...

Management Center > System > Solution settings
[x] Disable href="#name" parsing

 
Rasmus Andersen
Reply

Hi Morten,

I am on 9.3.9 and I don't have the checkbox in Management Center > System > Solution settings.
Has this been disabled between 9.3.9 -> 9.3.11 by default or is the setting somewhere else in 9.3.9?

Thanks for reaching out.

Best regards,
Rasmus

 
Rasmus Andersen
Reply

And I forgot to mention that DisableHrefNameParser is set to true in GlobalSettings, but still with no results.

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

The new setting was added in 9.3.11: /Globalsettings/System/Url/ReplaceAnchor

So you will have to upgrade. Sorry about the inconvenience.

 

You must be logged in to post in the forum