After upgrading a site to 2.5.0 I’m getting relative URLs for all page links and assets.
The site is fine on my local environment, the issue is only happening on my server (webfaction hosting). Here is the starterkit running on the server with the issue:
I’ve used the Kirby 2.5 Plainkit to create a new setup (in a subfolder). The RewriteBase does not seem to be working - even though this was not required in other similar setups - and this is causing a problem when using the css & js functions to load assets.
I tested it on my localhost now and the it worked for me. I use PHP7. My Engineer field seems to be broken with 2.5, but that’s another story… (update: it seems to be a bug in the toggle field #1063)
I’ve upgraded to 2.5.0 via the Kirby CLI, and the same problem appeared for me. $page->url() only outputs https://screenshots/noctuelles for example, and the Kirby TinyURL field only displays URLs like /s/1cg4l3x as well.
I have tested it local with XAMPP 7.0.13 and XAMPP 5.6.12 on Win10 (XAMPP version number = PHP version), I installed the starterkit in a subdirectory of the html root (e.g. at E:\xampp_7.0.13\htdocs\kirby_2.5.0\ ), running at a special port (e.g. http://127.0.0.1:61713/kirby_2.5.0/) or at port 80 and have no problems.
So I am sure, your system is different.
Do you have the unchanged file .htaccess from Kirby in the root of your Kirby installation?
If you have made some changes, please tell us the difference.
Did you change or add anything in the file /site/config/config.php?
Have you checked the permissions and the groups of the Kirby files and directories on your webserver after copying/installing the new Kirby version?
Ok, so we have almost identical settings, my OS is 10.12.5, Mamp Pro 4.1.1 with Apache and PHP 7.1.0 and I tried with both localhost and custom kirby.dev domain, links work as they should: