Permalink Viewer URL
// load detail record from 'announcements' list($announcementsRecords, $announcementsMetaData) = getRecords(array( 'tableName' => 'announcements', 'where' => whereRecordNumberInUrl(0), // If no record # is specified then latest record is shown 'loadUploads' => true, 'allowSearch' => false, 'limit' => '1', )); $detailRecord = @$announcementsRecords; // get first record list($announcementsRecords, $announcementsMetaData) = getRecords(array( 'tableName' => 'announcements', 'loadUploads' => false, 'allowSearch' => false, ));
This page works:
This search works
This permalink works:
This does not work:
Which makes sense, I guess. Nothing is telling the browser if the ?1 is simply part of the announcements name.
How do you handle permalinks and a _link for a viewer? Is there a way to get the .php out of there for consistency?
Broadly speaking a URL in the form "https://www.website.com/announcements?1" can work, but it does depend a bit on what you're trying to do, and how you've set things up.
Could you let me know what happens when you go to "https://www.website.com/announcements?1" - e.g. is there an error, is it showing the wrong content, etc.? Also, how did you configure your permalinks plugin to get the "/announcements" permalink working?