URL of labels

  • Currently the URLs of labels are like this https://beta.woltlab.com/board/13-done/?labelIDs%5B2%5D=10. I think is more functional and beautiful URLs like this https://beta.woltlab.com/board/13-done/?label=10-implemented (?label={id}-{title}).

    • Official Post

    You can filter by multiple labels at once and there is a higher logic behind the current parameter:
    ?labelIDs[<labelGroupID>]=<labelID>&labelIDs[<labelGroupID>]=<labelID>


    If we would have only single labels without any groups, I would agree with you but as it stands our label system is far more advanced than that. Also this would cause a significant API change and therefore incompatibilities we try to avoid during 4.0 -> 4.1. Even though we changed the default URL structure with 4.1, the legacy URL structure as seen in 4.0 is still available and can be toggled for backward compatibility.

  • Hi @Alexander Ebert :)


    Now I understand the used method but I don't understand one thing... when do you do a search only by label group? If I search https://beta.woltlab.com/board/11-suggestions/?labelIDs%5B2%5D (Label Group ID 2 - ?labelIDs[2]) I see all threads (with label and without label). This don't show only the ID 2 label group threads ("Won't be implemented", "Implemented" and "Fixed" labeled threads).


    I understand that each label has a unique ID and that it would not be necessary indicate the label group. For example, if you want search threads by two labels you can remove the title and write ?labelID=<labelID>&<labelID>. (the important is the label ID in the search)


    ID 9 - Won't be implemented
    ID 10 - Implemented


    ?labelID=9&10 = Threads with "Won't be implemented" and "Implemented" labels.


    I use a lot the labels in my forum and I don't understand the need of the group label ID in the URL.

    Edited once, last by Aethior ().

    • Official Post

    Now I understand the used method but I don't understand one thing... when do you do a search only by label group? If I search https://beta.woltlab.com/board…gestions/?labelIDs%5B2%5D (Label Group ID 2 - ?labelIDs[2]) I see all threads (with label and without label). This don't show only the ID 2 label group threads ("Won't be implemented", "Implemented" and "Fixed" labeled threads).


    You can't filter by group, you only filter by a label id which belongs to a group. There are a bunch of technical reasons why we're transmitting both the actual label id and the corresponding label group id. Looks more closely at the link you posted in your initial post, after the square brackets is the assignment of the actual label id =11.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!