YAFLogo

thx1200
  • thx1200
  • 63.2% (Friendly)
  • YAF Camper Topic Starter
5 years ago
https://www.mydomain.com/Forums/g/posts/m/388/Some-topic.aspx 

However, email notifications still contain the longer URL, which totally makes sense since the URL rewrite stuff is invisible to the application.

Is there any way I can override what YAF thinks the URL should be with what I want it to be for those emails?
Sponsor

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
5 years ago
Really you don#t need to specify any rewrite rules. It all depends which friendly url provider you are using.

If you use the standard DNNFriendlyUrl provider with the urlFormat advanced then the tabid would not be included in the urls
thx1200
  • thx1200
  • 63.2% (Friendly)
  • YAF Camper Topic Starter
5 years ago
I don't use the DNN one. I just use the IIS one. My DNN site is old and back when I started, the DNN rewrite module didn't do what I needed, and I suppose I could convert it now, but what I have works. Now I just need the outgoing _emails_ to use the same URL as the rewritten URLs.

Thanks
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
5 years ago
Originally Posted by: thx1200 

I don't use the DNN one. I just use the IIS one. My DNN site is old and back when I started, the DNN rewrite module didn't do what I needed, and I suppose I could convert it now, but what I have works. Now I just need the outgoing _emails_ to use the same URL as the rewritten URLs.

Thanks



I understand the problem but in that case the only two options you have would be to modify the source code of the YAF dnn module and manually build the urls, or use the standard url friendly url provider (or build your own one).

thx1200
  • thx1200
  • 63.2% (Friendly)
  • YAF Camper Topic Starter
5 years ago
Ah, I see. I was hoping there was an easier way, but it's probably time I just bit the bullet and upgraded my DNN friendly URL module. Thanks!
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button