Hi folks,
I recently upgraded a site from D5 to D6. I 'm db between 10+ domains. The 4 blocks tables, the 5 views tables, and the vocabulary_node_type table have all been prefixed.
The problem is that the pagination links on the bottom on my main content view all point to the wrong domain. i.e. on my one.domain.com site the pagination links point to two.domain.com.
Has anyone encountered this before?
Perhaps related, the action of the form around the default user login block always points to the same two.domain.com which is not even my primary domain.
Thanks for any insight.
Comments
Comment #1
agentrickardYou're not hardcoding $base_url in settings.php are you?
Comment #2
jmunning commentedNo, I'm not setting $base_url in settings.php. Anywhere else you can think of that I should check?
Thanks.
Comment #3
agentrickardCustom templates of any sort that fail to use l() or url() properly.
Comment #4
jmunning commentedI was able to fix this. Turns out the problem was that embedding the view in a block caused the pagination links to point to the source domain of the page. If I changed the source domain on the page, the domain of the links changed also. When viewing the view that was not in a block, the pagination links were correct.
I added this to my template.php file to force the links to point to the current domain:
Comment #5
agentrickardHow did you embed the view in a block? That is, what method did you use?
Comment #6
jmunning commentedusing this code:
Comment #7
agentrickardOdd. And no custom theming or links on the View output?
Comment #8
agentrickardComment #9
agentrickard