YAFLogo

thx1200
  • thx1200
  • 63.2% (Friendly)
  • YAF Camper Topic Starter
7 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: 4.0.1 BETA
7 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
7 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: 4.0.1 BETA
7 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

Originally Posted by: thx1200 

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
7 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!