Guest WebView alternates between ID and error

Hello,
I created an Article DocType with fields name (name1, small text), route (data), published (check).
I’ve set up webview in its settings (I can’t post screenshot)

I created a published article at http://0.0.0.0:8080/app/article (I can’t post screenshot)

As guest, I see the list at http://0.0.0.0:8080/articles

When I click on the created article, SOMETIMES I see this (I can’t post screenshot):

41q620q07s

and some other times (after refreshing the browser):

I guess I mangled stuff.
I expected to see “article_name1” somewhere, not the ID.
How to have a view, as guest, of the list of articles, and the article itself?
Thank you

Any idea? Anyone?
I’m stuck
Should I keep Frappe as backend only to circumvent this beahvior? Or is it related to cache? Or else?

Sorry, but I’d need to understand what is wrong. Is it my message?
I kept the screenshots but can’t post them because I’m “too new” accoring to vbulletin.
@NCP ?

Hi there,

I’m not really understanding what you’re doing here. I don’t have a ton of experience with portal pages, so perhaps I’m misunderstanding the structure, but it seems strange to me that you’re being routed to http://0.0.0.0/article_name1. Does anything appear at http://0.0.0.0/articles/article_name1?

Hi
Thank you for your reply @peterg
article_name1 is the name of the route I entered when creating the article

The webview creates routes for DocType.

At http://0.0.0.0:8080/article, I see the list of articles, according to the settings:
Screenshot from 2024-08-30 15-52-21

Did you try this link?

If that doesn’t work, please also try http://0.0.0.0/article/article_name1

Ah sorry, I misread your URL, yes I did try it before:
image
and with article
image

AFAIU, article_name1 is a route so a URL path at the root of the domain, while articles/ is a list view. Here’s my list:
image
clicking on the ID is going directly to the route (see the hover link at the very bottom of the screen):

OK, since I restarted all docker servers, it seems to stick to the ID, no more error:
image

But how to format this view? How to add the name of the article (see the Article DocType filling screenshot above) for example?

If you’re following the tutorial, formatting is described in the section on templates:

https://frappeframework.com/docs/user/en/tutorial/portal-pages#customize-web-view-template

1 Like

Thank you @peterg
{{title}} is automatically replace by ID. I didn’t know that.