diff --git a/.gitlab-ci.deploy.yml b/.gitlab-ci.deploy.yml
index 733c300..033be1f 100644
--- a/.gitlab-ci.deploy.yml
+++ b/.gitlab-ci.deploy.yml
@@ -11,6 +11,7 @@ memopoly.com:
- sudo /opt/salt-call-state-highstate.sh
rules:
- if: '$CI_COMMIT_BRANCH == "develop"'
+ - if: '$CI_COMMIT_BRANCH == "master"'
my.makepostsell.com:
diff --git a/make_post_sell/models/product.py b/make_post_sell/models/product.py
index 0b09ac5..a3b8ea0 100644
--- a/make_post_sell/models/product.py
+++ b/make_post_sell/models/product.py
@@ -379,7 +379,7 @@ class Product(RBase, Base):
return f"{request.host_url}/{p_or_c}/{self.id}/{self.slug}"
return f"{request.host_url}/{p_or_c}/{self.id}"
- def absolute_edit_url(self, request):
+ def absolute_edit_url(self, request, subject=""):
"""
The absolute URI to the product edit page.
@@ -387,7 +387,8 @@ class Product(RBase, Base):
https://makepostsell.com/p/product-uuid/edit
"""
-
+ if subject:
+ return f"{self.absolute_url(request, slug=False)}/{subject}/edit"
return f"{self.absolute_url(request, slug=False)}/edit"
@property
diff --git a/make_post_sell/routes.py b/make_post_sell/routes.py
index 5944116..6407a89 100644
--- a/make_post_sell/routes.py
+++ b/make_post_sell/routes.py
@@ -111,6 +111,7 @@ def includeme(config):
config.add_route("content_new", "/c/new")
config.add_route("content", "/c/{content_id}")
config.add_route("content_edit", "/c/{product_id}/edit")
+ config.add_route("content_description_edit", "/c/{product_id}/description/edit")
config.add_route("content_edit2", "/c/{product_id}/{slug:.*}/edit")
config.add_route("content_slug", "/c/{product_id}/{slug:.*}")
diff --git a/make_post_sell/templates/product_edit.j2 b/make_post_sell/templates/product_edit.j2
index f5f23c1..44a5e88 100644
--- a/make_post_sell/templates/product_edit.j2
+++ b/make_post_sell/templates/product_edit.j2
@@ -177,7 +177,7 @@ Your cover (thumbnail1) will show up on search pages.
- Supports Markdown and some HTML
+ Supports Markdown and some HTML