Hello everyone, everything good?
Today’s question is as follows:
I have a website that has this landing page: https://hotel.slideworks.cc/ (I’m still going to put the data)
And the navigation is this: Hotel Travel Inn Paulista Wall Street
I created a copy of the system to do some tests, as this one is already in use.
In this copy I switched to a SPA navigation system to speed up navigation and it’s working great (test link: test2)
The problem is the following, I want to replace the landing page that is the current index for the navigation of the SPA, my problem is that when I transformed the page of the SPA into the index, “index” appeared in the URL and I don’t want it to appear, how to solve?
One piece of information that may be relevant is that the SPA page is totally dynamic, is that why I can’t get it to be “https://hotelspateste.bubbleapps.io/version-test/test2”?
Does your index page have a content type?
Not sure what you did exactly. Did you use the Bubble edit menu to make this page the new index page?
maybe you can send a screenshot of the page settings? (this will also help @tylerboodman )
That’s why then, it’s how Bubble shows the thing’s slug/unique ID in the URL is with the page’s path.
Is that something you can just remove? Normally for SPAs people either use custom states or URL parameters to show/hide “pages”
My problem is not with the slug, my problem is with the “index” in the url, before when it was the landing page it didn’t appear written “index”
Yea because the page has a content type it’s showing /index/[spot where the slug will be when the content is filled in]
Remove the page content type and just see if the /index/
goes away
It worked by removing the type of content, “disappeared” the information
Is there any way I can remove this “index” without removing the content type of the page?
I need the page to have parameters because the whole system is based on the dynamic pages slug
My system is not a SPA, not really, they are dynamic pages so whenever I navigate from one “page” to another, I actually do a “go to page” to the same page with the data from the “new” page
Sorry for jumping in here, have thought this thread is more advance with respect, as I am seaching also the same solution here, where you have have clean paths on the index page to show groups (pages), rather using states or conditions (which is the way on bubble to transtion between multiple pages while being on the same page (e.g. index page).
Technically this is a SPA still (all on the index page) but using a Pages data type seems a little odd to me… normally you can just do an option set and show/hide groups based on what option is in a URL parameter or in a custom state.
Is there actual data in your database for these Pages?
In my case all the contents are dynamic, and I use the SLUG for this navigation without having to use custom states, what you can use instead of the custom State (if your system is a SPA) is optionsets and throwing these values in the URL would work as a custom state, but navigation is much better, in my case I can’t do that because the name of the pages, style and visible data is created by the user “admin”.
My website is a SAAS
Se vc navegar no Hotel Travel Inn Paulista Wall Street acho que da para entender melhor o que acontece.
To summarize here, as far we know in this thread is that:
-
Use custom states and/or parameters, with option set or not to make elements visible or not on a (single) page
-
Good thing is that, from the front end point of view, is that you will be able to create a very smooth and professional website (app) for your case on a single page
Yes, and moreover, we also found out that even if you make a page your “index” page, if it is of some “type” (as in the print above), it will necessarily look like the name of the page in the URL (in this case " index")
I appreciate the colaboration of everyone
I’m not sure if it’s bad for SEO or what, but you could have your index page just redirect on page load to your a called something else, then at least it will look nicer than “index” in your browser. Or switch away from the datatype-based-pages.
This topic was automatically closed after 70 days. New replies are no longer allowed.