Skip to content

fix: disable link to devlog on devlog page#682

Open
ultravioletasdf wants to merge 1 commit into
hackclub:mainfrom
ultravioletasdf:disable_devlog_link
Open

fix: disable link to devlog on devlog page#682
ultravioletasdf wants to merge 1 commit into
hackclub:mainfrom
ultravioletasdf:disable_devlog_link

Conversation

@ultravioletasdf

Copy link
Copy Markdown
Contributor

what's this do?

On a devlog page, the devlog was originally clickable, which meant it would link to itself.

I added a clickable parameter which disables the link, it defaults to true so will not affect other areas of code.

show it works

stardance_disable_devlog_clickable.mp4

ai?

nope

Adds "clickable" parameter, when set to false will disable the click
action. Defaults to true, so will not effect other areas of code

@EnterpriseGoose EnterpriseGoose left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just one edit to make this a bit cleaner

actions = [ data[:action], "click->card-link#navigate auxclick->card-link#navigate" ].compact.join(" ")
end

data.merge(

@EnterpriseGoose EnterpriseGoose Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of just commenting out the actions, can you make it not have any clickable data if the card is not clickable so it makes a fully clean, static card?

@ultravioletasdf

Copy link
Copy Markdown
Contributor Author

Seems to be fixed? Sorry I wasn't able to do this myself, I've been busy

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

Successfully merging this pull request may close these issues.

2 participants