x

Page request response cycle

I am exploring building an app for Weebly. Is the following possible?

 
An http request is made to a page, say to /content. Can a Weebly app see this request and issue a 302 redirect to a different page before the html payload for /content is sent? 
 
Basically can a Weebly app get involved in the http request response cycle? If so where can I find documentation on this?
 
Thanks
2,015 Views
Message 1 of 10
Report
9 REPLIES 9

Hey @bennick

You wanted to know if a Weebly app is able to be involved or to intercept tranffic during the HTTP request/response cycle.

The short answer is no.

The reason for this is...

When an app is installed into a site by a Weebly Site Admin, then once the site is published and when users visit the published site, app content is rendered asynchronously after page-load (once the response is complete).

Does this answer your question?

 
2,009 Views
Message 2 of 10
Report

Is there a way to prevent the content from rendering at all based on some user criteria? 

2,007 Views
Message 3 of 10
Report

Depending upon your use-case, your app could make a request to the User API for the currently authenticated user and contextually display content. Of course, this is only during edit mode, and wouldn't be a supported use-case for published website's end-users.

Does this help answer your question?

2,002 Views
Message 4 of 10
Report

How then do the various membership apps in the app center restrict access to content based on a user memebrship or logged in status? 

1,999 Views
Message 5 of 10
Report

If you mean apps such as these membership apps on the Weebly App Center, those are relying upon the Membership feature in Weebly and are only charging for access to specific groups or member content pages. The actual member authentication is handled by Weebly and not by the apps themselves.

1,992 Views
Message 6 of 10
Report

In that case where are the API docs for members and groups? I find a broken link in your docs to https://dev.weebly.com/membership-api.html

1,944 Views
Message 7 of 10
Report

The URL is incorrect you provided. Could you give me the URL where you found this incorrect link please?

Here is the correct URL to the Membership API: https://dev.weebly.com/membership.html

Tags (2)
1,926 Views
Message 8 of 10
Report

You can find that url (which ends up as a 404) on the first paragraph of this page: https://dev.weebly.com/pages-api.html

1,910 Views
Message 9 of 10
Report

Why is the membership API being depreciated?

I help run https://www.memberspace.com so I'm in the process of exploring how we can work with your platform. 

1,854 Views
Message 10 of 10
Report