Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Layout/Foot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<ul class="footer-list">
<li><router-link to="/privacy-policy">Privacy Policy</router-link></li>
<li><router-link to="/terms-of-use">Terms of Use</router-link></li>
<li><router-link to="/hosting-policy/pilot">Hosting Policy</router-link></li>
<li><router-link to="/hosting-policy">Hosting Policy</router-link></li>
<li><router-link to="/dsa-info">Digital Services Act Information</router-link></li>
<li><a target="_blank" rel="noopener noreferrer" href="https://www.wikimedia.de/impressum/">Imprint</a></li>
<li><router-link to="/complaint">Report illegal content</router-link></li>
Expand Down
5 changes: 5 additions & 0 deletions src/components/Pages/HostingPolicy/HostingPolicyRenderer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ export default {
response = await this.$api.getUpcomingPolicyByType({ policyType })
} else if (this.isCurrentRoute) {
response = await this.$api.getCurrentPolicyByType({ policyType })
if (response === undefined) {
// Special case to redirect users to the pilot policy if there is no current policy
// Remove afer T408316
this.$router.replace({ path: '/hosting-policy/pilot' })
}
} else {
response = await this.$api.getPolicyByDate({ policyType, activeFrom })
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
</template>

<script>
// Legacy file. Remove after T408316
export default {
name: 'HostingPolicy',
}
Expand Down
6 changes: 3 additions & 3 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import Privacy from '@/components/Pages/Privacy/Privacy'
import User from '@/components/Pages/User'
import Discovery from '@/components/Pages/Discovery/Discovery'
import Complaint from '@/components/Pages/Complaint.vue'
import HostingPolicy from '@/components/Pages/HostingPolicy.vue'
import HostingPolicyPilot from '@/components/Pages/HostingPolicyPilot.vue'
import HostingPolicyRenderer from '@/components/Pages/HostingPolicy/HostingPolicyRenderer.vue'
import DsaInfo from '@/components/Pages/DsaInfo/DsaInfo'

Expand Down Expand Up @@ -92,9 +92,9 @@ const router = new Router({
component: HostingPolicyRenderer,
},
{
path: '/hosting-policy/pilot',
path: '/hosting-policy/pilot', // Remove after T408316
name: 'HostingPolicyPilot',
component: HostingPolicy,
component: HostingPolicyPilot,
},
{
path: '/hosting-policy/:activeFrom',
Expand Down
Loading