{{--
    Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
    See the LICENCE file in the repository root for full licence text.
--}}
@php
    $translatedPages = [];
    foreach ($page->availableLocales() as $l) {
        $translatedPages[$l] = wiki_url($page->path, $l);
    }
@endphp

@extends('master', [
    'translatedPages' => $translatedPages,
])

{{--
    Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
    See the LICENCE file in the repository root for full licence text.
--}}
@php
    $translatedPages = [];
    foreach ($page->availableLocales() as $l) {
        $translatedPages[$l] = wiki_url($page->path, $l);
    }
@endphp

@extends('master', [
    'canonicalUrl' => $page->isVisible() ? wiki_url($page->path, $page->locale) : null,
    'translatedPages' => $translatedPages,
])

Add canonical url for wiki page
Add canonical url for wiki page
