Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Spanner Posted April 29, 2019 Posted April 29, 2019 If we have link: https://invisioncommunity.com/forums/topic/451461-huge-increase-in-server-load-after-upgrading-to-44x/page/3/#comments and when we embed it's /page/3/ was changed to ?page=3
Spanner Posted April 29, 2019 Author Posted April 29, 2019 Quick fix: forum/applications/forums/sources/Topic/Topic.php find and replace /** * Get content for embed * * @param array $params Additional parameters to add to URL * @return string */ public function embedContent( $params ) { $url = $this->url(); if( isset( $params[ 'page' ] ) ) { $url = $url->setPage( 'page', $params[ 'page' ] ); unset( $params[ 'page' ] ); } \IPS\Output::i()->cssFiles = array_merge( \IPS\Output::i()->cssFiles, \IPS\Theme::i()->css( 'embed.css', 'forums', 'front' ) ); return \IPS\Theme::i()->getTemplate( 'global', 'forums' )->embedTopic( $this, $url->setQueryString( $params ) ); }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.