Skip to content
Snippets Groups Projects
Commit 0800d9c5 authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

move incorrect redirect

parent d9f268f9
Branches
No related tags found
2 merge requests!876Fix shared articles & release elections web,!867move incorrect redirect
Pipeline #16176 passed
...@@ -121,9 +121,6 @@ class ElectionsArticlesPage(MainArticlesPageMixin): ...@@ -121,9 +121,6 @@ class ElectionsArticlesPage(MainArticlesPageMixin):
parent_page_types = ["elections.ElectionsHomePage"] parent_page_types = ["elections.ElectionsHomePage"]
subpage_types = ["elections.ElectionsArticlePage"] subpage_types = ["elections.ElectionsArticlePage"]
def serve(self, request, *args, **kwargs):
return redirect(self.root_page.url)
class ElectionsArticleTag(TaggedItemBase): class ElectionsArticleTag(TaggedItemBase):
content_object = ParentalKey( content_object = ParentalKey(
...@@ -178,6 +175,9 @@ class ElectionsCandidatesPage( ...@@ -178,6 +175,9 @@ class ElectionsCandidatesPage(
parent_page_types = ["elections.ElectionsHomePage"] parent_page_types = ["elections.ElectionsHomePage"]
subpage_types = ["elections.ElectionsCandidatePage"] subpage_types = ["elections.ElectionsCandidatePage"]
def serve(self, request, *args, **kwargs):
return redirect(self.root_page.url)
class Meta: class Meta:
verbose_name = "Kandidáti" verbose_name = "Kandidáti"
......
...@@ -7,7 +7,14 @@ ...@@ -7,7 +7,14 @@
<div class="__js-root"> <div class="__js-root">
<ui-view-provider <ui-view-provider
:initial="{view1: true, view2: false, view3: false, view4: false, view5: false}" :sync-location="true" :initial="
{
{% for block in page.content %}
view{{ forloop.counter }}: {% if not forloop.first %}false{% else %}true{% endif %}
{% if not forloop.last %},{% endif %}
{% endfor %}
}
" :sync-location="true"
v-slot="{ isCurrentView, toggleView }" v-slot="{ isCurrentView, toggleView }"
> >
{% include 'styleguide2/includes/organisms/header/elections/faq_header.html' with title=page.title ui_switch_iterable=page.get_topic_names %} {% include 'styleguide2/includes/organisms/header/elections/faq_header.html' with title=page.title ui_switch_iterable=page.get_topic_names %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment