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

Permalinks change every time the grain is opened #23

Open
xet7 opened this issue Mar 8, 2018 · 7 comments
Open

Permalinks change every time the grain is opened #23

xet7 opened this issue Mar 8, 2018 · 7 comments

Comments

@xet7
Copy link
Member

xet7 commented Mar 8, 2018

From @JamborJan on November 28, 2016 15:1

As the name says, permalinks shout stay the same, always.

Current situation

Always after re-opening a grain the permalink will change:

bildschirmfoto_2016-11-28_um_16_02_08

bildschirmfoto_2016-11-28_um_16_08_27

The issue is not as big when you know, that you always can use the main link, displayed on the dashboard.

bildschirmfoto_2016-11-28_um_16_11_56

Desired situation

To avoid confusion of the user, the permalink should always be displayed with the never changing url which is displayed on the dashboard page.

Copied from original issue: dwrensha/wordpress-sandstorm#29

@searoso
Copy link

searoso commented Jan 8, 2019

Is there any kind of work around possible? E.g. to manually insert in editor some wildcard which will be rewrited in view mode, and manually in editor write path to post "2019/01/name-of-post" next to it.

@JamborJan
Copy link
Member

Hey @searoso, right now its by design that the permalink changes. It is a security feature that each grain gets a random unique i'd when you start up a grain.

Even when I was the one who opened the issue back in 2016: I never had a real requirement where I needed these permalinks as the part with the random ID is anyway not what the visitor sees. For example:

ad458be2-3467-48de-a614-62bf703119f2

As the owner / administrator you choose which format your posts permalinks have. E.g. with year and date or the posts name. The displayed permalink is only an example for that. What your visitor will actually see is anyway depending on your DNS setup and WordPress on Sandstorm can never know what actual base URL you have configured in your DNS.

Right now I have two possible ideas to mitigate confusion:
A) remove the base URL completely from the examples
B) show the unique but permanent URL which is used for DNS configuration. Here we still have the point, that this is not what the visitor will see or type in the browser

From my point of view the benefit of changing something here compared to the effort is super low.

What is your opinion?

@searoso
Copy link

searoso commented Jan 9, 2019 via email

@ocdtrekkie
Copy link
Member

ocdtrekkie commented Jan 9, 2019

@JamborJan While it would be a somewhat manual step, for heavy WordPress-on-Sandstorm users, wouldn't it be most ideal to allow the user to set the base URL for the permalinks, so it matches what they set up with DNS?

@ocdtrekkie
Copy link
Member

@searoso The big challenge is that because the WordPress package on Sandstorm is geared for web publishing, presumably the goal should be to work well for people web publishing. (Which, mind you, the current configuration doesn't work for either, see previous comment.)

I'm curious why WordPress is your ideal "private blog" setup on Sandstorm. Is this content you're keeping solely for yourself, or content you share with other users using the Sandstorm share dialog to grant access to the grain rather than web publishing? I keep a lot of notes and the like on Sandstorm, but I tend towards things like Etherpad or Wekan.

I feel like WordPress is a non-ideal choice for private use, so I'm curious what makes it work better for you than other internal document focused options on Sandstorm.

@searoso
Copy link

searoso commented Jan 9, 2019 via email

@searoso
Copy link

searoso commented Jan 12, 2019

And I remember someone around who use Sandstorm-wordpress in private mode for their team. (They were upset someone clicked publish button, and @xet7 proposed to add unpublish next to it.)
I can't imagine what do they use instead of URLs to refer for posts to each other. (I used the links in personal task management.) But it's a again a point for option B (that regards DNS).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants