Code Monkey home page Code Monkey logo

Comments (6)

finchett avatar finchett commented on June 20, 2024 2

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.

from appsmith.

infinitetrooper avatar infinitetrooper commented on June 20, 2024 1

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.

from appsmith.

infinitetrooper avatar infinitetrooper commented on June 20, 2024 1

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.

from appsmith.

finchett avatar finchett commented on June 20, 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.

from appsmith.

infinitetrooper avatar infinitetrooper commented on June 20, 2024

@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?

from appsmith.

finchett avatar finchett commented on June 20, 2024

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.

from appsmith.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.