statamic / v2-hub

Statamic 2 - Feature Requests and Bug Reports
https://statamic.com
95 stars 5 forks source link

Slug homepage is not shown in .md file and in CP after switching pages #2483

Open pixelliquid opened 4 years ago

pixelliquid commented 4 years ago

Describe the bug When entering slug using the CP it is not saved to the .md file. It is shown however in the CP just after saving (save & continue). When switching pages and returning to the homepage however the slug is not shown in the CP.

To Reproduce Steps to reproduce the behavior:

  1. Install a fresh new statamic install using terminal command statamic new [name]
  2. Cleared the default site & create blank theme using php please
  3. Create a multi locale version using the steps in https://docs.statamic.com/localization.
  4. Go to homepage in CP
  5. Change slug in CP & check .md file > no inserted slug present
  6. Switch to another page and back to homepage in CP
  7. Check slug field: empty

Expected behavior The slug field showing the slug all the time, not the slug field only showing the slug after entering a value and clicking "save & continue"

Environment details (please complete the following information): Statamic Version 2.11.17 Fresh Install or Upgrade: Fresh Install OS: macOS 10.15.2 Browser: Chrome / Safari / FireFox Web Server: Valet PHP Version: 7.1.25 Addons installed: none

jackmcdade commented 4 years ago

Slugs are the saved in the filename, not inside the .md file. And homepage slugs are always overridden as / regardless of their filename. Is anything actually broken/non-functional or is it just the confusion of the field value?