Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...is it possible to stop the redirect to the site root when using ?tabid=xxxis it possible to stop the redirect to the site root when using ?tabid=xxx
Previous
 
Next
New Post
11/20/2007 3:55 PM
 

HI, I was hoping for a bit of help....

I've setup a few dnn sites, and create a fair number of custom modules - so far so good...

We have a new requirement to play presentations created in a product called Articulate. The presentations get converted into a series of flash components, and a static HTML page for displaying them. My plan was to create a module in DNN which contains the content of this html page to load the various presentations. The problem comes in that the flash components use relative paths and must be called from a page in the correct folder (from a browser perspective), with the flash components in a subfolder. No problem, I thought, it's just a case of making the browser believe it's opening the page from the path of the presentation, which is simple in that I can do a redirect when the module is first accessed to include the path of where the presenations reside ie /presentationfolder/tabid/333/default.aspx, and the redirect works fine, problem is that the browser thinks it's looking at /presentationfolder/tabid/333/  and for the presenation to work the browser needs to think it's looking at /presentationfolder/. To get around this I can change the redirect to /presentationfolder/default.aspx?tabid=333, and the browser would know it's base is /presentationfolder/ - problem is that as soon as I go to that url something inside dotnetnuke is sending a redirect to /?tabid=333 and I'm losing the /presentationfolder/ path is there anyway to stop this redirect??

 

 
New Post
11/21/2007 6:50 AM
 

After a bit of lateral thinking, I've come up with a solution.

I've added the following to my friendly URLs

.*showtabtabid(\d+)(.*) ~/Default.aspx?TabId=$1

 

so now my module does a redirect to "/presentationfolder/showtabtabid" + TabId + "default.aspx"

The browser sees that as /presentationfolder/showtabidtab110default.aspx so it believes it's operating in the presentations folder, and the friendly url ensure dnn displays the right page etc...

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...is it possible to stop the redirect to the site root when using ?tabid=xxxis it possible to stop the redirect to the site root when using ?tabid=xxx


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out