Sign in

Relative URLs does not work

  • This topic has 21 replies, 6 voices, and was last updated 2 months, 3 weeks ago by .
Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #2879
    Avatar photograzer

    Hello,

    Relative URLs does not work at least with following setup:

    • GitLab Pages sync
    • Domain set to Use relative URLs when domain field is autocompleted to
      ./
    • ProDocs theme in use

    When I use your syncing functionality to upload the webpage, all relations to assets does not work and look like this:

    href=”.//assets/css/style.css?v=1f59ab646289da9e0cb4b23df32c3663”

    Double slash after a dot is the problem. If I manually change the domain to ‘.’ (leave the dot but remove the slash) end result is the same.

    How can I overcome this issue?

    #3005
    Avatar photoTomasz Dziuda

    Hi,

    This feature is unfortunately buggy, and we need more time to improve it as it causes many side effects due more complicated catalogs structure. I suppose that in v.0.36.1 we will temporary disable this option and we will restore it when it will work properly.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #3268
    Avatar photoAlex

    And what is the ETA, please?

    I need this feature as air

    #3298
    Avatar photowimm

    Hi. As I am unfortunatly also relying on the “relative” URL – is it safe to “downgrade” to 0.36.0 and export the site?

     

    #3299
    Avatar photoAlex

    it never worked as it should

    #3300
    Avatar photowimm

    I know – but so far it was sufficient … anyways … I installed the 0.36.0 on another machine … works. thanks.

    #3301
    Avatar photoAlex

    I know – but so far it was sufficient … anyways … I installed the 0.36.0 on another machine … works. thanks.

    How you made it work? It never worked for me.

    Hm.. it was working on the same machine, but try to move the output folder on other machine and run, is it still working?

    #3302
    Avatar photoTomasz Dziuda

    The relative URLs can properly work if you are not using any subdirectories (e.g. pretty URLs), but the problems begin when you go e.g. to the tag page. The issue is quite big and needs a bigger rewrite in the rendering engine. At this moment we have no ETA for that, but we will try to bring back this feature in v.0.37 or v.0.38.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #3333
    Avatar photoAlex

    Damn it 🙁

    Bought ProDocs theme and cant use it as it was planned

    #3335
    Avatar photoTomasz Dziuda

    @Alex – to be honest – it is also an important issue for us, but it also requires a lot of work, that’s why I cannot specify how fast I will solve this problem. I will try to do my best and solve it in v0.37 if possible.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #3339
    Avatar photowimm

    Thank you! Looking forward!

    #3340
    Avatar photoAlex

    thank you a lot

    #3393
    Avatar photoAlex

    @Alex – to be honest – it is also an important issue for us, but it also requires a lot of work, that’s why I cannot specify how fast I will solve this problem. I will try to do my best and solve it in v0.37 if possible.

    Tomasz? Please apox timeframe for the fix?

    I need to move forward somehow with the work i have. Maybe Grav plus Static plugin is the way

    #3407
    Avatar photoTomasz Dziuda

    @Alex – I think that I have finally found a way to implement relative URLs in Publii without rewriting whole rendering engine 🙂

    Which OS are you using? I do hope that in the weekend I will finish implementation and then I can provide you a prerelease version to test this feature 🙂

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #3563
    Avatar photoAlex

    Great news 🙂 Thank you

    I have both here, mac and windows

    #3619
    Avatar photoTomasz Dziuda

    @Alex – sorry for the delay but I have to finish few features to make the prerelease version usable.

    You can download prerelease of v.0.37 here: https://cdn.getpublii.com/prerelease/Publii-0.37.0.dmg – this version restores the “Use relative URLs” switcher under server setttings.

    If you will find any problems with relative URLs – feel free to report me them.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #3645
    Avatar photoAlex

    Thank you

    Do you also have Windows version built?

    #4086
    Avatar photozongmeng

    windows v.0.37.1 (build 13792) beta

    the issue still there.

    Rendering process failed
    An error occurred during rendering process:

    Invalid count value

     

    #4088
    Avatar photozongmeng

    jC1C1ChkZq-1

    windows v.0.37.1 (build 13792) beta

    the issue still there.

    Rendering process failed
    An error occurred during rendering process:

    Invalid count value

     

    #4099
    Avatar photoTomasz Dziuda

    @zongmeng – which theme are you using?

    The problem exists when relative urls are disabled?

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #7662
    Avatar photosyracus

    Hi there,

    I know this post is quite old, but I’m wondering of the issue still exists or if I just missed a configuration.

    I’m currently using

    Publii: Version: 0.39.1 (build 15486)

    Theme: Mercury (v.2.3.0.0)

    Os: Windows 11

     

    The following scenario:

    I do have created a post ‘a’. Which is accessible in preview and hosted mode. Within the mercury template I’m trying to referre to this post from the footer section using

    Whatever

    I need to use the leading slash as without that I get a 404 from the Tags-List-Page as the link would resolve to something like ‘<domain>/tags/a.html’. This results that the site is hosted correctly on the server (I think this is because of the WebServer handling that correctly) but no longer in Preview Mode as the preview url will resilve to ‘C:\a.html’.

    It’s not that dramatic that the page navigation does not work in Preview Mode, it’s more important that it works in the remote server for sure, but as already said. If there is a solution to get both modes working with relative post urls that would be nice.

    Cheers and best regards

    syracus

     

    #7677
    Avatar photoTomasz Dziuda

    @syracus – I suppose that this issue is only with custom HTML and yes – it won’t work in preview mode, but it would be hard to analyze and replace potential relative links with prefixes – I think it is not a problem worth solving as it can lead to more problems than benefints at this moment.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

Viewing 22 posts - 1 through 22 (of 22 total)
  • You must be logged in to reply to this topic.