Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
vistree CreditAttribution: vistree commentedHi, 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 ....
Comment #2
sibopa CreditAttribution: sibopa commentedhi;
Do you have a solution for this?
I'm having the same problem.
thanks.
Comment #3
sibopa CreditAttribution: sibopa commentedI 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.
Comment #4
Steven Jones CreditAttribution: Steven Jones commentedYeah, you'll have to do something like what's suggested in #3.
Comment #6
pakati CreditAttribution: pakati commentedYes, 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