Update page slug to id
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 21 Nov 2018 13:00:30 +0000 (08:00 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 21 Nov 2018 13:00:30 +0000 (08:00 -0500)
use page id as they keep changes the page slug

models/front/apis/schedule.php
views/admin/management/apis.html

index 40999d6..b0ad44b 100644 (file)
@@ -95,7 +95,7 @@ class GlmMembersFront_apis_schedule
             'content'      => $content,
             'inDropDown'   => $inDropDown,
             'offCanvas'    => $offCanvas,
-            'schedulePage' => get_home_url(null, '/' ) . $starlinePageSlug . '/',
+            'schedulePage' => get_permalink( $starlinePageSlug ) ,
         );
 
         error_reporting(E_ALL ^ E_NOTICE);
index 4dc748e..2592c47 100644 (file)
@@ -31,7 +31,7 @@
                             </td>
                         </tr
                         <tr>
-                            <th> Page slug for the Schedule </th>
+                            <th> Page ID for the Schedule </th>
                             <td>
                                 <input
                                     class="glm-form-text-input-medium"