Breadcrumb example question

Howdy, I went to reference the breadcrumb example here. What’s this blogurl() bit? This example works as expected. I’m just curious as to why the name blogurl? I have no blog in my project.

<nav class="breadcrumb" aria-label="breadcrumb">
    <?php foreach($site->breadcrumb() as $crumb): ?>
      <a href="<?= $crumb->blogurl() ?>" <?= e($crumb->isActive(), 'aria-current="page"') ?>>
        <?= html($crumb->title()) ?>
    <?php endforeach ?>

Actually this doesn’t work as expected. I replaced blogurl() with just url() and it works as expected. Still not sure what that blogurl() is trying to tell me in that example.

I’ve never seen a method called blogurl(), wonder if this is some custom method that should not be in the example. Please replace with url() instead.

I fixed it in the docs.

1 Like