Comments (6)
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.
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.
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.
Thanks for raising this. Some use cases where this would be a big help.
- 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.
- 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.
@finchett - Thanks for the details, I have a couple of follow-ups.
-
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.
-
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.
Thanks @infinitetrooper
-
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?
-
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)
- [Task]: Action Form Module
- [Task]: Complete Action Form Toolbar
- [Task]: Update JS Editor to use Action Form
- [Task]: Update JS Editor to use Action Form HOT 1
- [Bug]: workspace settings, upload logo API fails when uploading .svg file
- [Bug]: Unable to Upload .SVG image for Logo in Branding HOT 1
- [Bug]: Duplicate workspace in the workspace page HOT 4
- [Bug]: The mongo URI section is displayed empty instead of having a default URI
- [Bug]: User Is unable to add the new mongo URI from the advanced tab
- chore: Adjust prominence of icon and main text in StatBox HOT 1
- chore: Adjust spacing between sections on tight density HOT 1
- chore: Adjust prominence of text and border in outlined buttons HOT 1
- Add `react-hooks/exhaustive-deps` rule with warn level
- [Task]: Export only root module instances when app consumes modules
- [Bug]: [aforce] Issue with downloading large .wav files from S3 bucket
- Create a working CRUD app with snowflake datasource with user/pw and with key pair auth
- Create feature flag HOT 1
- Set up Snowflake DB with user/password auth and with key/pair auth
- [Bug]: `currentRow` doesn't work correctly when the table is filtered HOT 1
- [Task]: Show the execution parameters in a correct order in Audit logs.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appsmith.