Developer forum

Forum » CMS - Standard features » Base Href - is it really needed?

Base Href - is it really needed?

Scott Forsyth
Reply

Does Dynamicweb depend on the base href? There is a setting now to disable it (Do not add base href) but I'm not sure what the consequences are to disabling it. A quick test of it disabled seems to show that it isn't required.

The reason that I'm wondering is that this particular site is behind a reverse proxy and using SSL offloading so when the request gets to the Dynamicweb site it thinks that it's not over HTTPS even though it is. An easy fix seems to be to turn off the base href so I want to confirm that I'm not overlooking something.

Thanks,

Scott

Replies

 
Nicolai Høeg Pedersen
Nicolai Høeg Pedersen
Reply

Dynamicweb does not need it, but includes it when you use Path as URLs (i.e. /Products/Bikes/MountainBike) because a lot of sites have img src="files/image.jpg" which would fail.

So as long as all you js, css, a and img src starts with / you are good.

The reason for the checkbox is there is exactly what you describe - proxies. You can also disable the port that DW includes in some requests, i.e. callback urls etc.

BR Nicolai

 
Imar Spaanjaars
Imar Spaanjaars
Reply

Hi Scott,

Here's an issue you may want to be aware of when removing the base href: http://developer.dynamicweb.com/forum/feature-requests/change-action-attribute-in-forms-for-editors-to-point-to-the-root.aspx?PID=48 although it's planned to be fixed somewhere in the future.

Imar

 
Nicolai Høeg Pedersen
Nicolai Høeg Pedersen
Reply

That one will be out with the hotfix tomorrow.

 
Scott Forsyth
Reply

Great, thanks to you both. Good to know that after tomorrow's hotfix we can turn that off safely as long as our own implementation doesn't depend on the base href (which it doesn't).

 
Kevin Steffer
Kevin Steffer
Reply

Could we have a switch for turning it off in DW9?

 
Morten Bengtson
Morten Bengtson
Reply
This post has been marked as an answer

Hi Kevin,

Base href can be turned off here (DW8 and DW9):
Settings > System > Solution settings > Do not add base href

Or is it something else you need?

Votes for this answer: 1
 
Kevin Steffer
Kevin Steffer
Reply

Can't believe that there actually is one checkbox that I did't know of angel

Well I do now! THANKS!

 
Ivan Marijanović
Ivan Marijanović
Reply

We are running 9.6.9 version and I dont see this checkbox?

 

This is all I have:

Ivan

 

 

DWAdminPage.png
 
Nicolai Pedersen
Nicolai Pedersen
Reply

Hi Ivan

It has moved in later version to the http section under web & http in settings - see dump.

Capture.PNG

 

You must be logged in to post in the forum