Search code examples
c#asp.nethyperlinkyetanotherforum

Change the default url directory for all the links on the page


I need some help. Thanks in advance.

I got the Open source code of YAF Forum (yetanotherforum.net)

I integrated it in my website application.

I have a small problem when I debug on localhost. I'll try to be clear.

The link in the forums all point to

~/Yaf/linkurl.aspx 

(linkurl is the page name) But they only work if I remove the /Yaf/. So I want all the links to point only to

~/linkurl.aspx

Where can I change that? is that in a config file or someplace else?

I hope I was clear. Thanks in advance


Solution

  • I solved this issue by adding

    <add key="YAF.FileRoot" value="~/"/>
    

    To the app.config file