thx1200
  • Posts: 10
  • Joined: 28/08/2007
DNN can sometimes have long URLs, including things like the "tabid" portion. I created URL rewrite rules and reverse rules to "prettify" the URLs for the YAF.Net module. So a URL like https://www.mydomain.com...ts/m/388/Some-topic.aspx  turns into https://www.mydomain.com...ts/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?
tha_watcha
  • Posts: 4044
  • Joined: 06/03/2010
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
UserPostedImage
thx1200
  • Posts: 10
  • Joined: 28/08/2007
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
  • Posts: 4044
  • Joined: 06/03/2010
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).


UserPostedImage
thx1200
  • Posts: 10
  • Joined: 28/08/2007
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!
Users browsing this topic
    Forum Jump  
    • You cannot post new topics in this forum.
    • You cannot reply to topics in this forum.
    • You cannot delete your posts in this forum.
    • You cannot edit your posts in this forum.
    • You cannot create polls in this forum.
    • You cannot vote in polls in this forum.

    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

    Project Twitter Updates

    Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved