Either collections with a date order to be ordered properly when a % sign exists in the slug or the % sign in the slug to be replaced with a - on import.
Actual behaviour
The % sign stayed in the slug / file name when imported and Statamic thought the file did not have a date, even though the file started with the date.
Removing the % and replacing it with a - fixed the issue.
Steps to reproduce
Export post from Wordpress where some post contains a slug that causes the .json file to have a slug line with a % in it.
Import the json into Statamic using the importer.
Navigate to the collection in CP
Server Details
Operating System: Ubuntu 16
Web Server: NGINX
PHP Version: 7.1
Statamic Version: 2.8.7
Updated from an older Statamic or fresh install: Updated 2.something > .5
List of installed addons: Feed, Google Analytics, Link OG Data, Permissions, PowerTools, Sitemap VideoEmbed
Logs
If any logs (browser, server, or Statamic) are appropriate...
Interestingly I also get a duplicate ID warning when the collection filename has a % sign in it, however the second file (the one without the date) does not actually exist.
Expected behaviour
Either collections with a date order to be ordered properly when a
%
sign exists in the slug or the%
sign in the slug to be replaced with a-
on import.Actual behaviour
The
%
sign stayed in the slug / file name when imported and Statamic thought the file did not have a date, even though the file started with the date.Removing the
%
and replacing it with a-
fixed the issue.Steps to reproduce
.json
file to have a slug line with a%
in it.json
into Statamic using the importer.CP
Server Details
Operating System: Ubuntu 16
Web Server: NGINX
PHP Version: 7.1
Statamic Version: 2.8.7
Updated from an older Statamic or fresh install: Updated 2.something > .5
List of installed addons: Feed, Google Analytics, Link OG Data, Permissions, PowerTools, Sitemap VideoEmbed
Logs
If any logs (browser, server, or Statamic) are appropriate...