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

[Feature]: Keep the Same Page URL When Deploying Apps Across Instances #33683

Open
1 task done
ame-appsmith opened this issue May 23, 2024 · 6 comments
Open
1 task done
Assignees
Labels
App Navigation Issues related to the topbar navigation and configuring it Enhancement New feature or request UI Builders Pod Issues that UI Builders face using appsmith

Comments

@ame-appsmith
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Summary

The customer wants to keep the same page URL when deploying apps to different instances. They are facing difficulties embedding Appsmith due to different URLs for pages across instances.
More details in this ticket.

Why should this be worked on?

The inconsistency in page IDs makes it challenging to embed Appsmith pages effectively.

@ame-appsmith ame-appsmith added Enhancement New feature or request App Navigation Issues related to the topbar navigation and configuring it Git Pod Anything related to git sync labels May 23, 2024
@github-actions github-actions bot added UI Builders Pod Issues that UI Builders face using appsmith and removed Git Pod Anything related to git sync labels May 23, 2024
@finchett
Copy link

finchett commented May 24, 2024

Thanks for raising this. Some use cases where this would be a big help.

  1. Embedding an Appsmith application. (Our use case)

We want to embed appsmith in another web application but it's difficult to deploy because every instance of the appsmith application has different page URLs.

  1. linking to a page more generally

There are plenty of reasons to link to page. Tying those links to a particular instance of appsmith will make it harder to keep those links valid across time.

Is there an existing issue for this?

  • I have searched the existing issues

I think this has actually been raised before. And it might actually the intended behavior already? #29793 from last year gives me that impression.

@infinitetrooper
Copy link
Contributor

@finchett - Thanks for the details, I have a couple of follow-ups.

  1. For embedding - when you are embedding the Appsmith app in another instance, do you have a use case to embed the staging and prod apps (or) just the prod app? Asking because if it's just the prod app, the URL slugs shouldn't matter.

  2. For linking page more generally - Is your use case that you want to hyperlink the pages based on the slug? Like [domain]/page-name-page-id?

@finchett
Copy link

Thanks @infinitetrooper

  1. Strictly speaking we'd only need to embed the prod app though it is certainly nice to be able to do both. Though could you elaborate a little? Do you mean to say the slugs can be omitted in production?

  2. I'm not fussed about how to urls are structured so much (though it would be nice to be able to omit the id entirely and have cleaner urls). It'd be useful to have a static link to an appsmith page which isn't tied to one instance.

@infinitetrooper
Copy link
Contributor

On 1 - I meant that if you only need to embed the prod URL, you can directly hyperlink the complete URL, either it be random or "slugified". Slugs become more useful when you need to dynamically embed a URL.

For example, if you want to show a prod or stage app based on the user who logged in, you can embed the URL like [Domain]/slug and the domain will dynamically be replaced at runtime based on the user. Since slug remains the same, embedding becomes much easier.

@finchett
Copy link

finchett commented May 24, 2024

Apologies. I had meant to refer to the page-id specifically. Not the slug.

I'm linking to an appsmith page like this in a separate react app.

https://localhost/app/application-name/some-page-{changing page id}

The trouble is appsmith isn't keeping the page id the same anytime we have a new instance of appsmith.

@infinitetrooper
Copy link
Contributor

Okay, got it @finchett. I think I have a fair idea of the use case, I'll reach back if we need more info on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App Navigation Issues related to the topbar navigation and configuring it Enhancement New feature or request UI Builders Pod Issues that UI Builders face using appsmith
Projects
None yet
Development

No branches or pull requests

7 participants