Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Open dashboard and storefront in separate tabs

weronkad34e7ae296ef
diff --git a/templates/base.html b/templates/base.html
index 3dfa22b639..8ea062c444 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -59,7 +59,7 @@
<li><a href="{% url "profile:orders" %}">{% trans "Your orders" %}</a></li>
{% if user.is_staff %}
<li class="divider"></li>
- <li><a href="{% url "dashboard:index" %}">{% trans "Dashboard" %}</a></li>
+ <li><a href="{% url "dashboard:index" %}" traget="_blank">{% trans "Dashboard" %}</a></li>
{% endif %}
<li class="divider"></li>
<li><a href="{% url "registration:logout" %}">{% trans "Log out" %}</a></li>
diff --git a/templates/dashboard/base.html b/templates/dashboard/base.html
index 907cfc8dd0..6d1a9ab016 100644
--- a/templates/dashboard/base.html
+++ b/templates/dashboard/base.html
@@ -47,7 +47,7 @@
</a>
<div class="collapsible-body">
<ul>
- <li><a href="/" class="waves-effect waves-teal">{% trans "Visit storefront" %}</a></li>
+ <li><a href="/" target="_blank" class="waves-effect waves-teal">{% trans "Visit storefront" %}</a></li>
<li><a href="{% url 'registration:logout' %}" class="waves-effect waves-teal">{% trans "Log out" %}</a></li>
</ul>
</div>
diff --git a/templates/dashboard/product/product_form.html b/templates/dashboard/product/product_form.html
index 7253a97db8..e4c2d7ef51 100644
--- a/templates/dashboard/product/product_form.html
+++ b/templates/dashboard/product/product_form.html
@@ -21,7 +21,7 @@
</a>
<ul id="context-menu" class="dropdown-content">
<li>
- <a href="{{ product.get_absolute_url }}">
+ <a href="{{ product.get_absolute_url }}" target="_blank">
{% trans 'View on site' %}
</a>
</li>