Changing route shows 404 page

Hi, I tried changing the route for listings_favorite_page but when I click on the account menu link to ‘/account/bookmarks/’ it shows the “404 Page Not Found” page. Do I have to change something else to move the page to the desired url?

(the ‘listing_favorite_action’ works flawlessly)

Here’s the code snippet:

add_filter(
	'hivepress/v1/routes',
	function( $routes ) {
		$routes['listing_favorite_action']['path'] = '/bookmark';
		$routes['listings_favorite_page']['path'] = '/bookmarks';
		return $routes;
	}
);

Thank you!

Hi,

Please refresh permalinks, you can check this doc How to refresh WordPress permalinks - HivePress Help Center

Hi,

This has already been done, but it didn’t resolve the issue…

Hi,

Sorry, but this problem can only occur due to permalinks, third-party plugins, or customizations, and unfortunately, we cannot solve it from our side. Please disable third-party plugins and customizations (if there are any) and check if this issue persists. If you use a caching plugin, make sure that caching is disabled for logged-in users.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.