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

not documented that you cannot use relative URLs #21

Open
rgommers opened this issue Apr 11, 2019 · 2 comments
Open

not documented that you cannot use relative URLs #21

rgommers opened this issue Apr 11, 2019 · 2 comments
Assignees

Comments

@rgommers
Copy link

U feed.xml
  E feed.xml (RuntimeError: To use absolute URLs you need to configure the URL i

This happens if you do not set url in the main .lektorproject file. Explanation from https://github.com/lektor/lektor-website/blob/dbb88eadb619bb3227a15568029d14cd727dea95/content/docs/content/urls/contents.lr#external-and-absolute-urls:

Lektor by default will prefer relative URLs. This makes it possible to easily host a website below a certain folder without having to do anything special to make this work. However there are some features which will require the use of an absolute or fully canonical (external) URL. For instance sitemaps or Atom feeds do not work with relative URLs. In this case the absolute URL path has to be configured.

You can pick the default for URL generation in the project configuration. For more information read about the Project Configuration :ref.

The default of relative, a relative URL style, means that you can deploy a website to a sub folder without any configuration, however most likely custom 404 pages will fail to find the needed assets. Fully canonical URLs are not recommended as default style.

So you have to set something that is not recommended to use lektor-atom it seems.

@goanpeca goanpeca self-assigned this Apr 11, 2019
@goanpeca
Copy link
Member

I believe there should be a way of forcing this config within this plugin so it is independent of the global configuration of the project.

Will take a look

@TimidRobot
Copy link

duplicate of #4

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

3 participants