Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for deep linking to resources from external applications #187

Merged
merged 1 commit into from
Nov 5, 2021

Conversation

Windvis
Copy link
Contributor

@Windvis Windvis commented Oct 15, 2021

This implements direct linking to people and "worship administrative units".

It can be tested by using the following url: http://localhost:4200/redirect?resource=add-resource-uri-here

If the type of the resource is supported it should go to the correct page, else it will show the index page instead for now.

Requires this branch in the backend app: lblod/app-organization-portal#57

@Windvis Windvis force-pushed the feature/direct-link-redirect branch from bfede4e to e599201 Compare October 18, 2021 08:14
@Windvis Windvis marked this pull request as ready for review October 18, 2021 08:15
app/services/direct-link.js Outdated Show resolved Hide resolved
app/services/direct-link.js Outdated Show resolved Hide resolved
@Windvis Windvis force-pushed the feature/direct-link-redirect branch from e599201 to 4d5c389 Compare November 4, 2021 16:36
@Windvis Windvis changed the title Direct linking support Deep linking support Nov 4, 2021
This allows users to be redirected to the correct page based on a resource URI. The resource URI is used to retrieve the RDF type(s) and uuid of a resource which will then be mapped to the correct RedirectHandler class.

The current implementation supports direct linking to "people" and "worship administrative units".
@Windvis Windvis force-pushed the feature/direct-link-redirect branch from 4d5c389 to 1a85dad Compare November 4, 2021 16:56
@Windvis
Copy link
Contributor Author

Windvis commented Nov 5, 2021

I'm merging this myself for now. It seems to work as expected. I just wanted some extra eyes on the implementation but we can always refactor in the future.

@Windvis Windvis merged commit a4f366c into master Nov 5, 2021
@Windvis Windvis deleted the feature/direct-link-redirect branch November 5, 2021 09:04
@Windvis Windvis added the enhancement New feature or request label Nov 18, 2021
@Windvis Windvis changed the title Deep linking support Add deep linking support Nov 18, 2021
@Windvis Windvis changed the title Add deep linking support Add support for deep linking to resources from external applications Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant