Hi, I set up overlay to open privatemsg-dialogs in overlay.
Opening a link inside drupal works fine.
If the same link is in an email, the link is opened directly as "plain" page instead of opening in overlay.
Link: http://www.mydomain.com/drupal/messages/view/3#privatemsg-mid-5

Comments

vistree’s picture

Hi, as an additonal information:
I tried to modify the .htaccess in my drupal-root-directory.
I tried to insert the following code:
RewriteRule ^messages/view/([a-zA-Z0-9_-]+) #overlay=messages/view/$1#privatemsg-mid-5 [R,NE,L]

to open a link, sent by the privatemsg-module, in the overlay module. But I can't get it to work.
The overlay is visible but there is no content in the overlay ....

sibopa’s picture

hi;
Do you have a solution for this?
I'm having the same problem.
thanks.

sibopa’s picture

I was playing around and found a solution:
Because my email link was created from views, I added a node id field and created my link like this:
<a href="http://mydomain.com/#overlay=node/[nid]">title</a>
Looks like working.

Steven Jones’s picture

Category: Task » Support request
Status: Active » Fixed

Yeah, you'll have to do something like what's suggested in #3.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

pakati’s picture

Yes, that works indeed. But what about Google search results?
Your sitemap will have the normal node/[nid] URLs, so when your pages are shown in a Google Search, and the user clicks on it, they won't see the content in an overlay.
It looks to me, that the overlay only works if your visitor is already on your website.
Is that right? Or is there a way around it?
Cheers