When clicking on a link to a SharePoint page(newpage.aspx) from another page, it is taking to the actual page library rather than the page itself. When I switch to classic experience it loads the page.
Can someone please tell why it is happening?
When clicking on a link to a SharePoint page(newpage.aspx) from another page, it is taking to the actual page library rather than the page itself. When I switch to classic experience it loads the page.
Can someone please tell why it is happening?
Per my test in my SharePoint online environment, I can access one page from another page by the link, it can load the page.
Did you switch to classic experience in the Pages library?
To troubleshoot the issue, check things below:
Check if the URL of the page(newpage.aspx) is right.
Create a new page library and check if the same issue will occur.
If the issue only occurs in the Pages library, you could create a new page library and move the content to the new page library.